Public Access
180 lines
6.9 KiB
JSON
180 lines
6.9 KiB
JSON
{
|
|||
|
|
"version": "5.6.17",
|
||
|
|
"module": "product",
|
||
|
|
"files": [
|
||
|
|
{
|
||
|
|
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||
|
|
"class": "Product",
|
||
|
|
"method": "__register__",
|
||
|
|
"line": 360,
|
||
|
|
"operations": [
|
||
|
|
{
|
||
|
|
"object": "cursor",
|
||
|
|
"operation": "execute",
|
||
|
|
"line": 371,
|
||
|
|
"args": [
|
||
|
|
"*table.update([table.suffix_code], [table.code])"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "fill_suffix_code"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "table",
|
||
|
|
"operation": "update",
|
||
|
|
"line": 371,
|
||
|
|
"args": [
|
||
|
|
"[table.suffix_code]",
|
||
|
|
"[table.code]"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "table.update([table.suffix_code], [table.code])",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "fill_suffix_code"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||
|
|
"class": "ProductCostPriceMethod",
|
||
|
|
"method": "__register__",
|
||
|
|
"line": 578,
|
||
|
|
"operations": [
|
||
|
|
{
|
||
|
|
"object": "cursor",
|
||
|
|
"operation": "execute",
|
||
|
|
"line": 601,
|
||
|
|
"args": [
|
||
|
|
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "cost_price_table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "sql_table",
|
||
|
|
"operation": "insert",
|
||
|
|
"line": 601,
|
||
|
|
"args": [],
|
||
|
|
"kwargs": {
|
||
|
|
"columns": "[Column(sql_table, c) for c in columns]",
|
||
|
|
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||
|
|
},
|
||
|
|
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "cost_price_table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "cost_price",
|
||
|
|
"operation": "select",
|
||
|
|
"line": 603,
|
||
|
|
"args": [
|
||
|
|
"*[Column(cost_price, c) for c in columns]"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "cost_price_table.column_exist('template')"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||
|
|
"class": "ProductCostPrice",
|
||
|
|
"method": "__register__",
|
||
|
|
"line": 634,
|
||
|
|
"operations": [
|
||
|
|
{
|
||
|
|
"object": "table",
|
||
|
|
"operation": "add_column",
|
||
|
|
"line": 648,
|
||
|
|
"args": [
|
||
|
|
"'template'",
|
||
|
|
"'INTEGER'"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "table.add_column('template', 'INTEGER')",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "not exist"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "cursor",
|
||
|
|
"operation": "execute",
|
||
|
|
"line": 655,
|
||
|
|
"args": [
|
||
|
|
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "sql_table",
|
||
|
|
"operation": "insert",
|
||
|
|
"line": 655,
|
||
|
|
"args": [],
|
||
|
|
"kwargs": {
|
||
|
|
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||
|
|
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||
|
|
},
|
||
|
|
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||
|
|
"operation": "select",
|
||
|
|
"line": 658,
|
||
|
|
"args": [
|
||
|
|
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||
|
|
],
|
||
|
|
"kwargs": {
|
||
|
|
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||
|
|
},
|
||
|
|
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "cursor",
|
||
|
|
"operation": "execute",
|
||
|
|
"line": 665,
|
||
|
|
"args": [
|
||
|
|
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "sql_table",
|
||
|
|
"operation": "delete",
|
||
|
|
"line": 665,
|
||
|
|
"args": [],
|
||
|
|
"kwargs": {
|
||
|
|
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||
|
|
},
|
||
|
|
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"object": "table",
|
||
|
|
"operation": "drop_column",
|
||
|
|
"line": 668,
|
||
|
|
"args": [
|
||
|
|
"'template'"
|
||
|
|
],
|
||
|
|
"kwargs": {},
|
||
|
|
"code": "table.drop_column('template')",
|
||
|
|
"phase": "after_super",
|
||
|
|
"condition": "table.column_exist('template')"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|