Compare commits

..
4 Commits
Author SHA1 Message Date
uha4 388ee649c3 now modulename and relative filename are stored separately 2026-08-09 02:04:04 +02:00
uha4 d4337ad1a5 extractor erstmal fertig
- er findet fast alle tabellen
- quellcode wird entpackt wenn er in einer variable ist
2026-08-09 00:47:23 +02:00
uha4 24caf23986 extract gets and saves most tables worked on
some cases still need some work...
2026-08-08 22:32:31 +02:00
uha4 f14f709649 Version title is printed only when something changed 2026-08-08 22:27:12 +02:00
152 changed files with 8941 additions and 2562 deletions
+5 -3
View File
@@ -99,7 +99,7 @@ class Module(object):
if last_blocks == None: if last_blocks == None:
last_blocks = len(v) * [None,] last_blocks = len(v) * [None,]
out.write(f"### {k}\n\n") new_version = k
# iterate all files / occureces # iterate all files / occureces
for i, m in enumerate(v): for i, m in enumerate(v):
@@ -115,7 +115,10 @@ class Module(object):
last_blocks[i] = key last_blocks[i] = key
if new_version:
out.write("\n")
out.write(f"### {new_version}\n\n")
new_version = None
out.write(f"file: {m['file']} : {m['line']}\n") out.write(f"file: {m['file']} : {m['line']}\n")
for op in m["operations"]: for op in m["operations"]:
@@ -150,7 +153,6 @@ class Module(object):
out.write("\n") out.write("\n")
out.write("\n")
def main(): def main():
+11 -1
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 35, "line": 35,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 36, "line": 36,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 39, "line": 39,
"args": [ "args": [
"'code'", "'code'",
+157 -36
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 119, "line": 119,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 123, "line": 123,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 499, "line": 499,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 508, "line": 508,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 511, "line": 511,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 511, "line": 511,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 694, "line": 694,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 702, "line": 702,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 705, "line": 705,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 708, "line": 708,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 709, "line": 709,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 709, "line": 709,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -142,18 +173,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -162,25 +199,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -189,13 +232,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'digest'" "'digest'"
@@ -208,6 +254,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 82, "line": 82,
"args": [ "args": [
"'collision'" "'collision'"
@@ -220,6 +269,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 85, "line": 85,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -231,7 +283,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1100, "line": 1100,
@@ -239,17 +292,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1107, "line": 1107,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1107, "line": 1107,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -258,13 +317,14 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 102, "line": 102,
@@ -272,17 +332,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 118, "line": 118,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 118, "line": 118,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -291,23 +357,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 121, "line": 121,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 121, "line": 121,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -316,23 +388,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 134, "line": 134,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 134, "line": 134,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -341,13 +419,14 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 401, "line": 401,
@@ -355,17 +434,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 412, "line": 412,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 412, "line": 412,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -373,13 +458,14 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -387,6 +473,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 41, "line": 41,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -394,13 +483,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -408,6 +498,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 40, "line": 40,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -420,7 +513,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 99, "line": 99,
@@ -428,17 +522,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 108, "line": 108,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 108, "line": 108,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -447,12 +547,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 114, "line": 114,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -465,7 +568,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 74, "line": 74,
@@ -473,18 +577,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 84, "line": 84,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 84, "line": 84,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -493,13 +603,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 93, "line": 93,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -512,7 +625,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 300, "line": 300,
@@ -520,6 +634,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 304, "line": 304,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -532,7 +649,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 313, "line": 313,
@@ -540,6 +658,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 317, "line": 317,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
+54 -11
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 61, "line": 61,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 74, "line": 74,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 74, "line": 74,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 77, "line": 77,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -48,7 +58,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -56,6 +67,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 49, "line": 49,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -67,7 +81,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 89, "line": 89,
@@ -75,6 +90,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 95, "line": 95,
"args": [ "args": [
"'name'", "'name'",
@@ -87,7 +105,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 265, "line": 265,
@@ -95,19 +114,26 @@
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 279, "line": 279,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 281, "line": 281,
"args": [ "args": [
"party.id", "party.id",
@@ -121,18 +147,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 282, "line": 282,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 283, "line": 283,
"args": [ "args": [
"'lang'" "'lang'"
@@ -145,7 +175,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyIdentifier", "class": "PartyIdentifier",
"method": "__register__", "method": "__register__",
"line": 329, "line": 329,
@@ -153,18 +184,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 341, "line": 341,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 341, "line": 341,
"args": [ "args": [
"party.id", "party.id",
@@ -174,13 +211,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 355, "line": 355,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -193,6 +233,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 356, "line": 356,
"args": [ "args": [
"'vat_country'" "'vat_country'"
+42 -10
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 374, "line": 374,
@@ -11,44 +12,56 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 396, "line": 396,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 396, "line": 396,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 398, "line": 398,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 429, "line": 429,
@@ -56,6 +69,9 @@
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 444, "line": 444,
"args": [ "args": [
"'template'", "'template'",
@@ -69,31 +85,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 451, "line": 451,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 451, "line": 451,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 454, "line": 454,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -101,37 +124,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 461, "line": 461,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 461, "line": 461,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 464, "line": 464,
"args": [ "args": [
"'template'" "'template'"
+13 -3
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 224, "line": 224,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 230, "line": 230,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +28,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 236, "line": 236,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 236, "line": 236,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,7 +53,7 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+19 -3
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 200, "line": 200,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 210, "line": 210,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 210, "line": 210,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 213, "line": 213,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 214, "line": 214,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 217, "line": 217,
"args": [ "args": [
"'name'" "'name'"
+11 -1
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 30, "line": 30,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 36, "line": 36,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 37, "line": 37,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 40, "line": 40,
"args": [ "args": [
"'code'", "'code'",
+189 -40
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 147, "line": 147,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 151, "line": 151,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 529, "line": 529,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 538, "line": 538,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 541, "line": 541,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 541, "line": 541,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 729, "line": 729,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 737, "line": 737,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 740, "line": 740,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 743, "line": 743,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 744, "line": 744,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 744, "line": 744,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 909, "line": 909,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 915, "line": 915,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 948, "line": 948,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 954, "line": 954,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 82, "line": 82,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 85, "line": 85,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 66, "line": 66,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 77, "line": 77,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1135, "line": 1135,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1144, "line": 1144,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1144, "line": 1144,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1150, "line": 1150,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,7 +411,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 103, "line": 103,
@@ -345,17 +420,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 119, "line": 119,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 119, "line": 119,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +445,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 122, "line": 122,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 122, "line": 122,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +476,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 135, "line": 135,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 135, "line": 135,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,13 +507,14 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 396, "line": 396,
@@ -428,17 +522,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 407, "line": 407,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 407, "line": 407,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +546,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 418, "line": 418,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +567,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -472,6 +576,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 41, "line": 41,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +586,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -493,6 +601,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 40, "line": 40,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -505,7 +616,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 85, "line": 85,
@@ -513,6 +625,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 93, "line": 93,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -525,6 +640,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -537,17 +655,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 99, "line": 99,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 99, "line": 99,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -556,12 +680,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 105, "line": 105,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -574,7 +701,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 76, "line": 76,
@@ -582,18 +710,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -602,13 +736,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 95, "line": 95,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -621,7 +758,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 302, "line": 302,
@@ -629,6 +767,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 306, "line": 306,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -641,7 +782,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 33, "line": 33,
@@ -649,6 +791,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 39, "line": 39,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -661,7 +806,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 323, "line": 323,
@@ -669,6 +815,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 327, "line": 327,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
+54 -11
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 66, "line": 66,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 79, "line": 79,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 79, "line": 79,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 82, "line": 82,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -48,7 +58,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -56,6 +67,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 49, "line": 49,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -67,7 +81,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 91, "line": 91,
@@ -75,6 +90,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 97, "line": 97,
"args": [ "args": [
"'name'", "'name'",
@@ -87,7 +105,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 278, "line": 278,
@@ -95,19 +114,26 @@
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 292, "line": 292,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 294, "line": 294,
"args": [ "args": [
"party.id", "party.id",
@@ -121,18 +147,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 295, "line": 295,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 296, "line": 296,
"args": [ "args": [
"'lang'" "'lang'"
@@ -145,7 +175,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyIdentifier", "class": "PartyIdentifier",
"method": "__register__", "method": "__register__",
"line": 439, "line": 439,
@@ -153,18 +184,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 451, "line": 451,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 451, "line": 451,
"args": [ "args": [
"party.id", "party.id",
@@ -174,13 +211,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 468, "line": 468,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -193,6 +233,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 469, "line": 469,
"args": [ "args": [
"'vat_country'" "'vat_country'"
+42 -10
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 382, "line": 382,
@@ -11,44 +12,56 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 404, "line": 404,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 404, "line": 404,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 406, "line": 406,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 437, "line": 437,
@@ -56,6 +69,9 @@
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 452, "line": 452,
"args": [ "args": [
"'template'", "'template'",
@@ -69,31 +85,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 459, "line": 459,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 459, "line": 459,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 462, "line": 462,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -101,37 +124,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 469, "line": 469,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 469, "line": 469,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 472, "line": 472,
"args": [ "args": [
"'template'" "'template'"
+13 -3
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 222, "line": 222,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 228, "line": 228,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +28,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 234, "line": 234,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 234, "line": 234,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,7 +53,7 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+19 -3
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 194, "line": 194,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 207, "line": 207,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 208, "line": 208,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 211, "line": 211,
"args": [ "args": [
"'name'" "'name'"
+29 -6
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 32, "line": 32,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 43, "line": 43,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 44, "line": 44,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 47, "line": 47,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 50, "line": 50,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 50, "line": 50,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 216, "line": 216,
@@ -75,23 +92,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 53, "line": 53,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 70, "line": 70,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 70, "line": 70,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+189 -40
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 147, "line": 147,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 151, "line": 151,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 529, "line": 529,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 538, "line": 538,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 541, "line": 541,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 541, "line": 541,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 729, "line": 729,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 737, "line": 737,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 740, "line": 740,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 743, "line": 743,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 744, "line": 744,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 744, "line": 744,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 909, "line": 909,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 915, "line": 915,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 948, "line": 948,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 954, "line": 954,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 70, "line": 70,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 75, "line": 75,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 82, "line": 82,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 85, "line": 85,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 80, "line": 80,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1135, "line": 1135,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1144, "line": 1144,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1144, "line": 1144,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1150, "line": 1150,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,7 +411,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 103, "line": 103,
@@ -345,17 +420,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 119, "line": 119,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 119, "line": 119,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +445,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 122, "line": 122,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 122, "line": 122,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +476,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 135, "line": 135,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 135, "line": 135,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,13 +507,14 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 396, "line": 396,
@@ -428,17 +522,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 407, "line": 407,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 407, "line": 407,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +546,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 418, "line": 418,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +567,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -472,6 +576,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 41, "line": 41,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +586,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -493,6 +601,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 40, "line": 40,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -505,7 +616,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 86, "line": 86,
@@ -513,6 +625,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -525,6 +640,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 95, "line": 95,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -537,17 +655,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -556,12 +680,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 106, "line": 106,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -574,7 +701,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 76, "line": 76,
@@ -582,18 +710,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -602,13 +736,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 95, "line": 95,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -621,7 +758,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 303, "line": 303,
@@ -629,6 +767,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 307, "line": 307,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -641,7 +782,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 33, "line": 33,
@@ -649,6 +791,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 39, "line": 39,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -661,7 +806,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 323, "line": 323,
@@ -669,6 +815,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 327, "line": 327,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
+84 -18
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 73, "line": 73,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 86, "line": 86,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 86, "line": 86,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 89, "line": 89,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -48,7 +58,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 271, "line": 271,
@@ -56,19 +67,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 286, "line": 286,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 288, "line": 288,
"args": [ "args": [
"country.code" "country.code"
@@ -76,25 +94,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 291, "line": 291,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 292, "line": 292,
"args": [ "args": [
"'country'" "'country'"
@@ -107,19 +129,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 296, "line": 296,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 298, "line": 298,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -127,25 +156,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 301, "line": 301,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 302, "line": 302,
"args": [ "args": [
"'language'" "'language'"
@@ -158,7 +191,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -166,6 +200,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 49, "line": 49,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -177,7 +214,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 91, "line": 91,
@@ -185,6 +223,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 97, "line": 97,
"args": [ "args": [
"'name'", "'name'",
@@ -197,7 +238,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 278, "line": 278,
@@ -205,19 +247,26 @@
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 292, "line": 292,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 294, "line": 294,
"args": [ "args": [
"party.id", "party.id",
@@ -231,18 +280,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 295, "line": 295,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 296, "line": 296,
"args": [ "args": [
"'lang'" "'lang'"
@@ -255,7 +308,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyIdentifier", "class": "PartyIdentifier",
"method": "__register__", "method": "__register__",
"line": 439, "line": 439,
@@ -263,18 +317,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 451, "line": 451,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 451, "line": 451,
"args": [ "args": [
"party.id", "party.id",
@@ -284,13 +344,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 468, "line": 468,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -303,6 +366,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 469, "line": 469,
"args": [ "args": [
"'vat_country'" "'vat_country'"
+42 -10
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 439, "line": 439,
@@ -11,44 +12,56 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 461, "line": 461,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 461, "line": 461,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 463, "line": 463,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 494, "line": 494,
@@ -56,6 +69,9 @@
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 509, "line": 509,
"args": [ "args": [
"'template'", "'template'",
@@ -69,31 +85,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 516, "line": 516,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 516, "line": 516,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 519, "line": 519,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -101,37 +124,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 526, "line": 526,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 526, "line": 526,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 529, "line": 529,
"args": [ "args": [
"'template'" "'template'"
+13 -3
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 222, "line": 222,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 228, "line": 228,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +28,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 234, "line": 234,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 234, "line": 234,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,7 +53,7 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+19 -3
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 194, "line": 194,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 207, "line": 207,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 208, "line": 208,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 211, "line": 211,
"args": [ "args": [
"'name'" "'name'"
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+48 -1
View File
@@ -1,5 +1,52 @@
{ {
"version": "5.6", "version": "5.6",
"module": "company", "module": "company",
"files": [] "files": [
{
"module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 20,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 21,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 43,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 44,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
}
]
} }
+29 -6
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 30, "line": 30,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 42, "line": 42,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 45, "line": 45,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 48, "line": 48,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 48, "line": 48,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 214, "line": 214,
@@ -75,23 +92,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 223, "line": 223,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 223, "line": 223,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 51, "line": 51,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 68, "line": 68,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 68, "line": 68,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+268 -44
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 152, "line": 152,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 156, "line": 156,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 545, "line": 545,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 554, "line": 554,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 557, "line": 557,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 557, "line": 557,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 745, "line": 745,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 753, "line": 753,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 756, "line": 756,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 759, "line": 759,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 760, "line": 760,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 760, "line": 760,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 933, "line": 933,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 939, "line": 939,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 972, "line": 972,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 978, "line": 978,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 63, "line": 63,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 78, "line": 78,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 78, "line": 78,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 84, "line": 84,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 85, "line": 85,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 88, "line": 88,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 80, "line": 80,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1157, "line": 1157,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1166, "line": 1166,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1166, "line": 1166,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1172, "line": 1172,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,25 +411,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 103, "line": 103,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 113,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 118, "line": 118,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 118, "line": 118,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +462,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 121, "line": 121,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 121, "line": 121,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +493,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 134, "line": 134,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 134, "line": 134,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,31 +524,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 362,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 366,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 393, "line": 393,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 402,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 403, "line": 403,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 403, "line": 403,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +606,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 414, "line": 414,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +627,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -472,6 +636,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 41, "line": 41,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +646,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -493,6 +661,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 40, "line": 40,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -505,7 +676,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 86, "line": 86,
@@ -513,6 +685,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -525,6 +700,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 95, "line": 95,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -537,17 +715,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -556,12 +740,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 106, "line": 106,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -574,7 +761,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 77, "line": 77,
@@ -582,18 +770,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 89, "line": 89,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 89, "line": 89,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -602,13 +796,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 98, "line": 98,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -621,6 +818,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 106, "line": 106,
"args": [ "args": [
"model.model" "model.model"
@@ -628,50 +828,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 112, "line": 112,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 113, "line": 113,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -684,7 +896,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 330, "line": 330,
@@ -692,6 +905,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 334, "line": 334,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -704,7 +920,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 33, "line": 33,
@@ -712,6 +929,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 39, "line": 39,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -724,7 +944,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 323, "line": 323,
@@ -732,6 +953,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 327, "line": 327,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
+119 -18
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 67, "line": 67,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 80, "line": 80,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 80, "line": 80,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 83, "line": 83,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -48,7 +58,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 265, "line": 265,
@@ -56,19 +67,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 280, "line": 280,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 282, "line": 282,
"args": [ "args": [
"country.code" "country.code"
@@ -76,25 +94,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 285, "line": 285,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 286, "line": 286,
"args": [ "args": [
"'country'" "'country'"
@@ -107,19 +129,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 290, "line": 290,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 292, "line": 292,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -127,25 +156,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 295, "line": 295,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 296, "line": 296,
"args": [ "args": [
"'language'" "'language'"
@@ -158,7 +191,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -166,6 +200,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -177,7 +214,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 40,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 41,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 81, "line": 81,
@@ -185,6 +244,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 87, "line": 87,
"args": [ "args": [
"'name'", "'name'",
@@ -197,27 +259,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 268, "line": 268,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 272,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 281, "line": 281,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 283, "line": 283,
"args": [ "args": [
"party.id", "party.id",
@@ -231,18 +315,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 284, "line": 284,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 285, "line": 285,
"args": [ "args": [
"'lang'" "'lang'"
@@ -255,7 +343,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 428, "line": 428,
@@ -263,18 +352,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 440, "line": 440,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 440, "line": 440,
"args": [ "args": [
"party.id", "party.id",
@@ -284,13 +379,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 457, "line": 457,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -303,6 +401,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 458, "line": 458,
"args": [ "args": [
"'vat_country'" "'vat_country'"
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 48,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 49,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 360, "line": 360,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 371, "line": 371,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 371, "line": 371,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 551,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 552,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 578, "line": 578,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 585,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 586,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 601, "line": 601,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 601, "line": 601,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 603, "line": 603,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 634, "line": 634,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 641,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 648, "line": 648,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 655, "line": 655,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 655, "line": 655,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 658, "line": 658,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 665, "line": 665,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 665, "line": 665,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 668, "line": 668,
"args": [ "args": [
"'template'" "'template'"
+36 -3
View File
@@ -3,7 +3,31 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 43,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 44,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 249, "line": 249,
@@ -11,6 +35,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 255, "line": 255,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +51,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 261, "line": 261,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 261, "line": 261,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,7 +76,7 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+19 -3
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 195, "line": 195,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 205, "line": 205,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 205, "line": 205,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 208, "line": 208,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 209, "line": 209,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 212, "line": 212,
"args": [ "args": [
"'name'" "'name'"
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+48 -1
View File
@@ -1,5 +1,52 @@
{ {
"version": "5.8", "version": "5.8",
"module": "company", "module": "company",
"files": [] "files": [
{
"module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 20,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 21,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 43,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 44,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
}
]
} }
+29 -6
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 30, "line": 30,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 42, "line": 42,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 45, "line": 45,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 48, "line": 48,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 48, "line": 48,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 214, "line": 214,
@@ -75,23 +92,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 223, "line": 223,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 223, "line": 223,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 51, "line": 51,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 68, "line": 68,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 68, "line": 68,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+273 -45
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 149, "line": 149,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 153, "line": 153,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 525, "line": 525,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 534, "line": 534,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 537, "line": 537,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 537, "line": 537,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 705, "line": 705,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 713, "line": 713,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 716, "line": 716,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 719, "line": 719,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 720, "line": 720,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 720, "line": 720,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 893, "line": 893,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 899, "line": 899,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 932, "line": 932,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 938, "line": 938,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 63, "line": 63,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 78, "line": 78,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 78, "line": 78,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 84, "line": 84,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 85, "line": 85,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 88, "line": 88,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 71, "line": 71,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 82, "line": 82,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1159, "line": 1159,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1168, "line": 1168,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1168, "line": 1168,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1174, "line": 1174,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,25 +411,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 95, "line": 95,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 105,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 110, "line": 110,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 110, "line": 110,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +462,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 113, "line": 113,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 113, "line": 113,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +493,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 126, "line": 126,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 126, "line": 126,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,31 +524,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 354,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 358,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 385, "line": 385,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 394,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 395, "line": 395,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 395, "line": 395,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +606,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 406, "line": 406,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +627,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -472,6 +636,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 42, "line": 42,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +646,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 32, "line": 32,
@@ -493,6 +661,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 36, "line": 36,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -505,7 +676,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 80, "line": 80,
@@ -513,6 +685,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 88, "line": 88,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -525,6 +700,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 89, "line": 89,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -537,17 +715,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -556,12 +740,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -574,7 +761,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 73, "line": 73,
@@ -582,18 +770,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -602,13 +796,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -621,6 +818,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 102, "line": 102,
"args": [ "args": [
"model.model" "model.model"
@@ -628,50 +828,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 109, "line": 109,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -684,7 +896,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 327, "line": 327,
@@ -692,6 +905,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 331, "line": 331,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -704,7 +920,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -712,6 +929,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 35, "line": 35,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -724,7 +944,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 324, "line": 324,
@@ -732,6 +953,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 328, "line": 328,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
@@ -744,7 +968,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 396, "line": 396,
@@ -752,6 +977,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 401, "line": 401,
"args": [ "args": [
"'user'", "'user'",
+119 -18
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 67, "line": 67,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 80, "line": 80,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 80, "line": 80,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 83, "line": 83,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -48,7 +58,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 265, "line": 265,
@@ -56,19 +67,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 280, "line": 280,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 282, "line": 282,
"args": [ "args": [
"country.code" "country.code"
@@ -76,25 +94,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 285, "line": 285,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 286, "line": 286,
"args": [ "args": [
"'country'" "'country'"
@@ -107,19 +129,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 290, "line": 290,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 292, "line": 292,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -127,25 +156,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 295, "line": 295,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 296, "line": 296,
"args": [ "args": [
"'language'" "'language'"
@@ -158,7 +191,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -166,6 +200,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -177,7 +214,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 40,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 41,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 81, "line": 81,
@@ -185,6 +244,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 87, "line": 87,
"args": [ "args": [
"'name'", "'name'",
@@ -197,27 +259,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 270, "line": 270,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 274,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 283, "line": 283,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 285, "line": 285,
"args": [ "args": [
"party.id", "party.id",
@@ -231,18 +315,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 286, "line": 286,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 287, "line": 287,
"args": [ "args": [
"'lang'" "'lang'"
@@ -255,7 +343,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 445, "line": 445,
@@ -263,18 +352,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 457, "line": 457,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 457, "line": 457,
"args": [ "args": [
"party.id", "party.id",
@@ -284,13 +379,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 474, "line": 474,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -303,6 +401,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 475, "line": 475,
"args": [ "args": [
"'vat_country'" "'vat_country'"
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 53,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 54,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 401, "line": 401,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 412, "line": 412,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 412, "line": 412,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 595,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 596,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 622, "line": 622,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 629,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 630,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 645, "line": 645,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 645, "line": 645,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 647, "line": 647,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 678, "line": 678,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 685,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 692, "line": 692,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 699, "line": 699,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 699, "line": 699,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 702, "line": 702,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 709, "line": 709,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 709, "line": 709,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 712, "line": 712,
"args": [ "args": [
"'template'" "'template'"
+44 -5
View File
@@ -3,7 +3,31 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 43,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 44,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 254, "line": 254,
@@ -11,6 +35,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 260, "line": 260,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +51,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 266, "line": 266,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 266, "line": 266,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,23 +76,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 273, "line": 273,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 273, "line": 273,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -68,7 +107,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 191, "line": 191,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 204, "line": 204,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 207, "line": 207,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 208, "line": 208,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 211, "line": 211,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 214, "line": 214,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 214, "line": 214,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 51, "line": 51,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 49, "line": 49,
"args": [ "args": [
"'product'", "'product'",
+79 -7
View File
@@ -3,7 +3,54 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 51,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 52,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -11,31 +58,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 86, "line": 86,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 86, "line": 86,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +102,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 91, "line": 91,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 91, "line": 91,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 93, "line": 93,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +153,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 97, "line": 97,
"args": [ "args": [
"'main_company'" "'main_company'"
+50 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 42, "line": 42,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 43, "line": 43,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 46, "line": 46,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 219, "line": 219,
@@ -75,36 +92,62 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 287, "line": 287,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 289,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 291, "line": 291,
"args": [ "args": [
"'zip'", "'zip'",
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 59, "line": 59,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 76, "line": 76,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 76, "line": 76,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+297 -50
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 166, "line": 166,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 170, "line": 170,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 558, "line": 558,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 567, "line": 567,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 570, "line": 570,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 570, "line": 570,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 732, "line": 732,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 740, "line": 740,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 743, "line": 743,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 746, "line": 746,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 747, "line": 747,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 747, "line": 747,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 920, "line": 920,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 926, "line": 926,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 959, "line": 959,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 965, "line": 965,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 58, "line": 58,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 68, "line": 68,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 68, "line": 68,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 79, "line": 79,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80, "line": 80,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 83, "line": 83,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 84, "line": 84,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 95, "line": 95,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1203, "line": 1203,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1212, "line": 1212,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1212, "line": 1212,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1218, "line": 1218,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,25 +411,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 96, "line": 96,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 106,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +462,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +493,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,31 +524,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 355,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 359,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 386, "line": 386,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 395,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +606,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 407, "line": 407,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +627,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -472,6 +636,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 42, "line": 42,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +646,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 39, "line": 39,
@@ -493,6 +661,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 45, "line": 45,
"args": [ "args": [
"'code'" "'code'"
@@ -506,7 +677,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 115, "line": 115,
@@ -514,31 +686,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 128, "line": 128,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 128, "line": 128,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -546,13 +729,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 133, "line": 133,
"args": [ "args": [
"'code'" "'code'"
@@ -565,7 +751,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 32, "line": 32,
@@ -573,6 +760,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 36, "line": 36,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -585,7 +775,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 80, "line": 80,
@@ -593,6 +784,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 88, "line": 88,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -605,6 +799,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 89, "line": 89,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -617,17 +814,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -636,12 +839,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -654,7 +860,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 73, "line": 73,
@@ -662,18 +869,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -682,13 +895,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -701,6 +917,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 102, "line": 102,
"args": [ "args": [
"model.model" "model.model"
@@ -708,50 +927,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 109, "line": 109,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -764,7 +995,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 327, "line": 327,
@@ -772,6 +1004,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 331, "line": 331,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -784,7 +1019,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -792,6 +1028,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 35, "line": 35,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -804,7 +1043,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 317, "line": 317,
@@ -812,6 +1052,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 321, "line": 321,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
@@ -824,7 +1067,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 389, "line": 389,
@@ -832,6 +1076,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 394, "line": 394,
"args": [ "args": [
"'user'", "'user'",
+130 -20
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 67, "line": 67,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 73, "line": 73,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,31 +27,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 84, "line": 84,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 84, "line": 84,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 87, "line": 87,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -60,7 +73,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 278, "line": 278,
@@ -68,19 +82,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 293, "line": 293,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 295, "line": 295,
"args": [ "args": [
"country.code" "country.code"
@@ -88,25 +109,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 298, "line": 298,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 299, "line": 299,
"args": [ "args": [
"'country'" "'country'"
@@ -119,19 +144,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 303, "line": 303,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 305, "line": 305,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -139,25 +171,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 308, "line": 308,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 309, "line": 309,
"args": [ "args": [
"'language'" "'language'"
@@ -170,7 +206,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -178,6 +215,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -189,7 +229,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 97,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 98,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 84, "line": 84,
@@ -197,6 +259,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 90, "line": 90,
"args": [ "args": [
"'name'", "'name'",
@@ -209,27 +274,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 322, "line": 322,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 326,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 335, "line": 335,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 337, "line": 337,
"args": [ "args": [
"party.id", "party.id",
@@ -243,18 +330,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 338, "line": 338,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 339, "line": 339,
"args": [ "args": [
"'lang'" "'lang'"
@@ -267,7 +358,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 515, "line": 515,
@@ -275,18 +367,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 528, "line": 528,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 528, "line": 528,
"args": [ "args": [
"party.id", "party.id",
@@ -296,13 +394,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 545, "line": 545,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -315,6 +416,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 546, "line": 546,
"args": [ "args": [
"'vat_country'" "'vat_country'"
@@ -327,17 +431,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 549, "line": 549,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 549, "line": 549,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -346,7 +456,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 416, "line": 416,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 427, "line": 427,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 427, "line": 427,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 616,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 617,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 647, "line": 647,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 654,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 655,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 670, "line": 670,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 670, "line": 670,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 672, "line": 672,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 707, "line": 707,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 714,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 721, "line": 721,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 728, "line": 728,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 728, "line": 728,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 731, "line": 731,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 738, "line": 738,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 738, "line": 738,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 741, "line": 741,
"args": [ "args": [
"'template'" "'template'"
+44 -5
View File
@@ -3,7 +3,31 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 45,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 46,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 264, "line": 264,
@@ -11,6 +35,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 270, "line": 270,
"args": [ "args": [
"'code'", "'code'",
@@ -24,17 +51,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 276, "line": 276,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 276, "line": 276,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -43,23 +76,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 283, "line": 283,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 283, "line": 283,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -68,7 +107,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 197, "line": 197,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 210, "line": 210,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 210, "line": 210,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 213, "line": 213,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 214, "line": 214,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 217, "line": 217,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 220, "line": 220,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 220, "line": 220,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 65, "line": 65,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 87, "line": 87,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 87, "line": 87,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 49, "line": 49,
"args": [ "args": [
"'product'", "'product'",
+79 -7
View File
@@ -3,7 +3,54 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 51,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 52,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -11,31 +58,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 86, "line": 86,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 86, "line": 86,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +102,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 91, "line": 91,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 91, "line": 91,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 93, "line": 93,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +153,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 97, "line": 97,
"args": [ "args": [
"'main_company'" "'main_company'"
+50 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 42, "line": 42,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 43, "line": 43,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 46, "line": 46,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 219, "line": 219,
@@ -75,36 +92,62 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 287, "line": 287,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 289,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 291, "line": 291,
"args": [ "args": [
"'zip'", "'zip'",
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 61, "line": 61,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 78, "line": 78,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 78, "line": 78,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+297 -50
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 167, "line": 167,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 171, "line": 171,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 562, "line": 562,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 571, "line": 571,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 574, "line": 574,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 574, "line": 574,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 759, "line": 759,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 767, "line": 767,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 770, "line": 770,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 773, "line": 773,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 774, "line": 774,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 774, "line": 774,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 947, "line": 947,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 953, "line": 953,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 986, "line": 986,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 992, "line": 992,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 58, "line": 58,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 68, "line": 68,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 68, "line": 68,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 73, "line": 73,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 79, "line": 79,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80, "line": 80,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 83, "line": 83,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 86, "line": 86,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 97, "line": 97,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1199, "line": 1199,
@@ -299,17 +364,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1208, "line": 1208,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1208, "line": 1208,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -318,12 +389,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1214, "line": 1214,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -337,25 +411,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 96, "line": 96,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 106,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -364,23 +462,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -389,23 +493,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -414,31 +524,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 355,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 359,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 386, "line": 386,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 395,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -446,12 +606,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 407, "line": 407,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -464,7 +627,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py", "module": "ir",
"file": "queue.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 36, "line": 36,
@@ -472,6 +636,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 42, "line": 42,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -479,13 +646,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -493,6 +661,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 49, "line": 49,
"args": [ "args": [
"'code'" "'code'"
@@ -506,7 +677,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 119, "line": 119,
@@ -514,31 +686,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 132, "line": 132,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 132, "line": 132,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 134, "line": 134,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -546,13 +729,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 137, "line": 137,
"args": [ "args": [
"'code'" "'code'"
@@ -565,7 +751,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 32, "line": 32,
@@ -573,6 +760,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 36, "line": 36,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -585,7 +775,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 80, "line": 80,
@@ -593,6 +784,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 88, "line": 88,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -605,6 +799,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 89, "line": 89,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -617,17 +814,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 94, "line": 94,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -636,12 +839,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 100, "line": 100,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -654,7 +860,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 73, "line": 73,
@@ -662,18 +869,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -682,13 +895,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -701,6 +917,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 102, "line": 102,
"args": [ "args": [
"model.model" "model.model"
@@ -708,50 +927,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 109, "line": 109,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -764,7 +995,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 327, "line": 327,
@@ -772,6 +1004,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 331, "line": 331,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -784,7 +1019,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -792,6 +1028,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 35, "line": 35,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -804,7 +1043,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 317, "line": 317,
@@ -812,6 +1052,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 321, "line": 321,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
@@ -824,7 +1067,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 389, "line": 389,
@@ -832,6 +1076,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 394, "line": 394,
"args": [ "args": [
"'user'", "'user'",
+130 -20
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 67, "line": 67,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 73, "line": 73,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,31 +27,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 84, "line": 84,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 84, "line": 84,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 87, "line": 87,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -60,7 +73,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 271, "line": 271,
@@ -68,19 +82,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 286, "line": 286,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 288, "line": 288,
"args": [ "args": [
"country.code" "country.code"
@@ -88,25 +109,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 291, "line": 291,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 292, "line": 292,
"args": [ "args": [
"'country'" "'country'"
@@ -119,19 +144,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 296, "line": 296,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 298, "line": 298,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -139,25 +171,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 301, "line": 301,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 302, "line": 302,
"args": [ "args": [
"'language'" "'language'"
@@ -170,7 +206,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -178,6 +215,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -189,7 +229,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 97,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 98,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 103, "line": 103,
@@ -197,6 +259,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 109, "line": 109,
"args": [ "args": [
"'name'", "'name'",
@@ -209,27 +274,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 357, "line": 357,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 361,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 370, "line": 370,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 372, "line": 372,
"args": [ "args": [
"party.id", "party.id",
@@ -243,18 +330,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 373, "line": 373,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 374, "line": 374,
"args": [ "args": [
"'lang'" "'lang'"
@@ -267,7 +358,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 625, "line": 625,
@@ -275,18 +367,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"party.id", "party.id",
@@ -296,13 +394,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 655, "line": 655,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -315,6 +416,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 656, "line": 656,
"args": [ "args": [
"'vat_country'" "'vat_country'"
@@ -327,17 +431,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -346,7 +456,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 432, "line": 432,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 443, "line": 443,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 443, "line": 443,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 646,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 647,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 677, "line": 677,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 684,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 685,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 700, "line": 700,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 700, "line": 700,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 702, "line": 702,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 742, "line": 742,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 749,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 756, "line": 756,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 763, "line": 763,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 763, "line": 763,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 766, "line": 766,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 773, "line": 773,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 773, "line": 773,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 776, "line": 776,
"args": [ "args": [
"'template'" "'template'"
+49 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/bom.py", "module": "production",
"file": "bom.py",
"class": "BOMInput", "class": "BOMInput",
"method": "__register__", "method": "__register__",
"line": 70, "line": 70,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 75, "line": 75,
"args": [ "args": [
"'product_bom_uniq'" "'product_bom_uniq'"
@@ -22,7 +26,31 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 45,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 46,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 265, "line": 265,
@@ -30,6 +58,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 271, "line": 271,
"args": [ "args": [
"'code'", "'code'",
@@ -43,17 +74,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 277, "line": 277,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 277, "line": 277,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -62,23 +99,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 284, "line": 284,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 284, "line": 284,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -87,7 +130,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 205, "line": 205,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 218, "line": 218,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 218, "line": 218,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 221, "line": 221,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 222, "line": 222,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 225, "line": 225,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 228, "line": 228,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 62, "line": 62,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 84, "line": 84,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 84, "line": 84,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 49, "line": 49,
"args": [ "args": [
"'product'", "'product'",
+79 -7
View File
@@ -3,7 +3,54 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 50,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 51,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -11,31 +58,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 85, "line": 85,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +102,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 90, "line": 90,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +153,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 94, "line": 94,
"args": [ "args": [
"'main_company'" "'main_company'"
+53 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 42, "line": 42,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 43, "line": 43,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 46, "line": 46,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 49, "line": 49,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 256, "line": 256,
@@ -75,28 +92,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 267, "line": 267,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 267, "line": 267,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 271, "line": 271,
"args": [ "args": [
"'type'" "'type'"
@@ -110,14 +136,34 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 328, "line": 328,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 330,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 332, "line": 332,
"args": [ "args": [
"'zip'", "'zip'",
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 59, "line": 59,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 76, "line": 76,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 76, "line": 76,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+307 -52
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionKeyword", "class": "ActionKeyword",
"method": "__register__", "method": "__register__",
"line": 166, "line": 166,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 170, "line": 170,
"args": [ "args": [
"['keyword', 'model']", "['keyword', 'model']",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 565, "line": 565,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 574, "line": 574,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -42,17 +50,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 577, "line": 577,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 577, "line": 577,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -61,13 +75,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 765, "line": 765,
@@ -75,6 +90,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 773, "line": 773,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -86,6 +104,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 776, "line": 776,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -97,6 +118,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 779, "line": 779,
"args": [ "args": [
"'limit'", "'limit'",
@@ -109,17 +133,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 780, "line": 780,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 780, "line": 780,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -128,13 +158,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 961, "line": 961,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 967, "line": 967,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 1000, "line": 1000,
@@ -162,6 +197,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1006, "line": 1006,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -174,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 59, "line": 59,
@@ -182,18 +221,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -202,25 +247,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -229,13 +280,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80, "line": 80,
"args": [ "args": [
"'digest'" "'digest'"
@@ -248,6 +302,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'collision'" "'collision'"
@@ -260,6 +317,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 84, "line": 84,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 87, "line": 87,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 98, "line": 98,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -291,7 +355,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelButton", "class": "ModelButton",
"method": "__register__", "method": "__register__",
"line": 889, "line": 889,
@@ -299,6 +364,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 895, "line": 895,
"args": [ "args": [
"'name_model_uniq'" "'name_model_uniq'"
@@ -310,7 +378,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1228, "line": 1228,
@@ -318,17 +387,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1237, "line": 1237,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1237, "line": 1237,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -337,12 +412,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1243, "line": 1243,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -356,25 +434,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 96, "line": 96,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 106,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -383,23 +485,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -408,23 +516,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -433,31 +547,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 355,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 359,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 386, "line": 386,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 395,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -465,12 +629,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 407, "line": 407,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -483,7 +650,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue_.py", "module": "ir",
"file": "queue_.py",
"class": "Queue", "class": "Queue",
"method": "__register__", "method": "__register__",
"line": 37, "line": 37,
@@ -491,6 +659,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_queue"
],
"line": 43, "line": 43,
"args": [ "args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -498,13 +669,14 @@
"kwargs": { "kwargs": {
"action": "'add'" "action": "'add'"
}, },
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')", "code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -512,6 +684,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47, "line": 47,
"args": [ "args": [
"'code'" "'code'"
@@ -525,7 +700,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 117, "line": 117,
@@ -533,31 +709,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 132, "line": 132,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -565,13 +752,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 135, "line": 135,
"args": [ "args": [
"'code'" "'code'"
@@ -584,7 +774,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py", "module": "ir",
"file": "session.py",
"class": "Session", "class": "Session",
"method": "__register__", "method": "__register__",
"line": 24, "line": 24,
@@ -592,6 +783,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_session"
],
"line": 28, "line": 28,
"args": [ "args": [
"'create_uid'", "'create_uid'",
@@ -604,7 +798,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 79, "line": 79,
@@ -612,6 +807,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 87, "line": 87,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -624,6 +822,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 88, "line": 88,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -636,17 +837,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 93, "line": 93,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 93, "line": 93,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -655,12 +862,15 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_translation"
],
"line": 99, "line": 99,
"args": [ "args": [
"['lang', 'type', 'name']", "['lang', 'type', 'name']",
@@ -673,7 +883,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 73, "line": 73,
@@ -681,18 +892,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 85, "line": 85,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -701,13 +918,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -720,6 +940,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 102, "line": 102,
"args": [ "args": [
"model.model" "model.model"
@@ -727,50 +950,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 104, "line": 104,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 108, "line": 108,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 109, "line": 109,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -783,7 +1018,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "TriggerLog", "class": "TriggerLog",
"method": "__register__", "method": "__register__",
"line": 329, "line": 329,
@@ -791,6 +1027,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 333, "line": 333,
"args": [ "args": [
"['trigger', 'record_id']", "['trigger', 'record_id']",
@@ -803,7 +1042,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 29, "line": 29,
@@ -811,6 +1051,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 35, "line": 35,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -823,7 +1066,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeOptional", "class": "ViewTreeOptional",
"method": "__register__", "method": "__register__",
"line": 445, "line": 445,
@@ -831,6 +1075,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_optional"
],
"line": 448, "line": 448,
"args": [ "args": [
"['view_id', 'user']", "['view_id', 'user']",
@@ -843,7 +1090,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewTreeState", "class": "ViewTreeState",
"method": "__register__", "method": "__register__",
"line": 508, "line": 508,
@@ -851,6 +1099,9 @@
{ {
"object": "table", "object": "table",
"operation": "index_action", "operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 512, "line": 512,
"args": [ "args": [
"['model', 'domain', 'user', 'child_name']", "['model', 'domain', 'user', 'child_name']",
@@ -863,7 +1114,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 580, "line": 580,
@@ -871,6 +1123,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 585, "line": 585,
"args": [ "args": [
"'user'", "'user'",
+130 -20
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 76, "line": 76,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 82, "line": 82,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,31 +27,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 93, "line": 93,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 93, "line": 93,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 96, "line": 96,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -60,7 +73,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 295, "line": 295,
@@ -68,19 +82,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 310, "line": 310,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 312, "line": 312,
"args": [ "args": [
"country.code" "country.code"
@@ -88,25 +109,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 315, "line": 315,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 316, "line": 316,
"args": [ "args": [
"'country'" "'country'"
@@ -119,19 +144,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 320, "line": 320,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 322, "line": 322,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -139,25 +171,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 325, "line": 325,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 326, "line": 326,
"args": [ "args": [
"'language'" "'language'"
@@ -170,7 +206,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -178,6 +215,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -189,7 +229,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 99,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 100,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 102, "line": 102,
@@ -197,6 +259,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 108, "line": 108,
"args": [ "args": [
"'name'", "'name'",
@@ -209,27 +274,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 356, "line": 356,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 360,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 369, "line": 369,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 371, "line": 371,
"args": [ "args": [
"party.id", "party.id",
@@ -243,18 +330,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 372, "line": 372,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 373, "line": 373,
"args": [ "args": [
"'lang'" "'lang'"
@@ -267,7 +358,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 636, "line": 636,
@@ -275,18 +367,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 649, "line": 649,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 649, "line": 649,
"args": [ "args": [
"party.id", "party.id",
@@ -296,13 +394,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 666, "line": 666,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -315,6 +416,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 667, "line": 667,
"args": [ "args": [
"'vat_country'" "'vat_country'"
@@ -327,17 +431,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 670, "line": 670,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 670, "line": 670,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -346,7 +456,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 424, "line": 424,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 435, "line": 435,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 435, "line": 435,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 638,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 639,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 669, "line": 669,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 676,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 677,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 692, "line": 692,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 692, "line": 692,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 694, "line": 694,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 734, "line": 734,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 741,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 748, "line": 748,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 755, "line": 755,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 755, "line": 755,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 758, "line": 758,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 765, "line": 765,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 765, "line": 765,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 768, "line": 768,
"args": [ "args": [
"'template'" "'template'"
+49 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/bom.py", "module": "production",
"file": "bom.py",
"class": "BOMInput", "class": "BOMInput",
"method": "__register__", "method": "__register__",
"line": 70, "line": 70,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 75, "line": 75,
"args": [ "args": [
"'product_bom_uniq'" "'product_bom_uniq'"
@@ -22,7 +26,31 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 44,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 45,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 250, "line": 250,
@@ -30,6 +58,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 256, "line": 256,
"args": [ "args": [
"'code'", "'code'",
@@ -43,17 +74,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 262, "line": 262,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 262, "line": 262,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -62,23 +99,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 269, "line": 269,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 269, "line": 269,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -87,7 +130,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 202, "line": 202,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 218, "line": 218,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 219, "line": 219,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 222, "line": 222,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 82, "line": 82,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 82, "line": 82,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 47, "line": 47,
"args": [ "args": [
"'product'", "'product'",
+79 -7
View File
@@ -3,7 +3,54 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 50,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 51,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -11,31 +58,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 85, "line": 85,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +102,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 90, "line": 90,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +153,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 94, "line": 94,
"args": [ "args": [
"'main_company'" "'main_company'"
+56 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 178, "line": 178,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 189, "line": 189,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 190, "line": 190,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 193, "line": 193,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 196, "line": 196,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 196, "line": 196,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 433, "line": 433,
@@ -75,28 +92,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 444, "line": 444,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 444, "line": 444,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 448, "line": 448,
"args": [ "args": [
"'type'" "'type'"
@@ -110,6 +136,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 451, "line": 451,
"args": [ "args": [
"'code'" "'code'"
@@ -123,14 +152,34 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 516, "line": 516,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 518,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 520, "line": 520,
"args": [ "args": [
"'zip'", "'zip'",
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -11,23 +12,29 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 77, "line": 77,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 77, "line": 77,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+273 -45
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 570, "line": 570,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 579, "line": 579,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -22,17 +26,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 582, "line": 582,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 582, "line": 582,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -41,13 +51,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 770, "line": 770,
@@ -55,6 +66,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 778, "line": 778,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -66,6 +80,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 781, "line": 781,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -77,6 +94,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 784, "line": 784,
"args": [ "args": [
"'limit'", "'limit'",
@@ -89,17 +109,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 785, "line": 785,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 785, "line": 785,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -108,13 +134,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 966, "line": 966,
@@ -122,6 +149,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 972, "line": 972,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -134,7 +164,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 1005, "line": 1005,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1011, "line": 1011,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 59, "line": 59,
@@ -162,18 +197,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -182,25 +223,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -209,13 +256,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80, "line": 80,
"args": [ "args": [
"'digest'" "'digest'"
@@ -228,6 +278,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'collision'" "'collision'"
@@ -240,6 +293,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 84, "line": 84,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -251,7 +307,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 92, "line": 92,
@@ -259,6 +316,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 103, "line": 103,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelButton", "class": "ModelButton",
"method": "__register__", "method": "__register__",
"line": 886, "line": 886,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 892, "line": 892,
"args": [ "args": [
"'name_model_uniq'" "'name_model_uniq'"
@@ -290,7 +354,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1208, "line": 1208,
@@ -298,17 +363,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1217, "line": 1217,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1217, "line": 1217,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -317,12 +388,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1223, "line": 1223,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -336,25 +410,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 96, "line": 96,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 106,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 111, "line": 111,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -363,23 +461,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 114, "line": 114,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -388,23 +492,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 127, "line": 127,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -413,31 +523,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 355,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 359,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 386, "line": 386,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 395,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 396, "line": 396,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -445,12 +605,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 407, "line": 407,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -463,7 +626,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -471,6 +635,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47, "line": 47,
"args": [ "args": [
"'code'" "'code'"
@@ -484,7 +651,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 117, "line": 117,
@@ -492,31 +660,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 132, "line": 132,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -524,13 +703,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 135, "line": 135,
"args": [ "args": [
"'code'" "'code'"
@@ -543,7 +725,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 110, "line": 110,
@@ -551,6 +734,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 118, "line": 118,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -563,6 +749,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 119, "line": 119,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -575,17 +764,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 124, "line": 124,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 124, "line": 124,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -594,13 +789,14 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 74, "line": 74,
@@ -608,18 +804,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 86, "line": 86,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -628,13 +830,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 95, "line": 95,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -647,6 +852,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 103, "line": 103,
"args": [ "args": [
"model.model" "model.model"
@@ -654,50 +862,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 105, "line": 105,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 105, "line": 105,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 109, "line": 109,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 110, "line": 110,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -710,7 +930,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -718,6 +939,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 37, "line": 37,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -730,7 +954,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 601, "line": 601,
@@ -738,6 +963,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 606, "line": 606,
"args": [ "args": [
"'user'", "'user'",
+130 -20
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 85, "line": 85,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 91, "line": 91,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,31 +27,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 102, "line": 102,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 102, "line": 102,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 105, "line": 105,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -60,7 +73,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 312, "line": 312,
@@ -68,19 +82,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 327, "line": 327,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 329, "line": 329,
"args": [ "args": [
"country.code" "country.code"
@@ -88,25 +109,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 332, "line": 332,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 333, "line": 333,
"args": [ "args": [
"'country'" "'country'"
@@ -119,19 +144,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 337, "line": 337,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 339, "line": 339,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -139,25 +171,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 342, "line": 342,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 343, "line": 343,
"args": [ "args": [
"'language'" "'language'"
@@ -170,7 +206,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -178,6 +215,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -189,7 +229,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 99,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 100,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 110, "line": 110,
@@ -197,6 +259,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 116, "line": 116,
"args": [ "args": [
"'name'", "'name'",
@@ -209,27 +274,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 345, "line": 345,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 349,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 358, "line": 358,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 360, "line": 360,
"args": [ "args": [
"party.id", "party.id",
@@ -243,18 +330,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 361, "line": 361,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 362, "line": 362,
"args": [ "args": [
"'lang'" "'lang'"
@@ -267,7 +358,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 625, "line": 625,
@@ -275,18 +367,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"party.id", "party.id",
@@ -296,13 +394,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 655, "line": 655,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -315,6 +416,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 656, "line": 656,
"args": [ "args": [
"'vat_country'" "'vat_country'"
@@ -327,17 +431,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -346,7 +456,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 444, "line": 444,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 455, "line": 455,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 455, "line": 455,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 677,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 678,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 708, "line": 708,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 715,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 716,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 730, "line": 730,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 730, "line": 730,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 732, "line": 732,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 772, "line": 772,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 779,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 786, "line": 786,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 793, "line": 793,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 793, "line": 793,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 796, "line": 796,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 803, "line": 803,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 803, "line": 803,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 806, "line": 806,
"args": [ "args": [
"'template'" "'template'"
+49 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/bom.py", "module": "production",
"file": "bom.py",
"class": "BOMInput", "class": "BOMInput",
"method": "__register__", "method": "__register__",
"line": 70, "line": 70,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 75, "line": 75,
"args": [ "args": [
"'product_bom_uniq'" "'product_bom_uniq'"
@@ -22,7 +26,31 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 44,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 45,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 266, "line": 266,
@@ -30,6 +58,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 272, "line": 272,
"args": [ "args": [
"'code'", "'code'",
@@ -43,17 +74,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 278, "line": 278,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 278, "line": 278,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -62,23 +99,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 285, "line": 285,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 285, "line": 285,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -87,7 +130,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 202, "line": 202,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 218, "line": 218,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 219, "line": 219,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 222, "line": 222,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 60, "line": 60,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 82, "line": 82,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 82, "line": 82,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 47, "line": 47,
"args": [ "args": [
"'product'", "'product'",
+79 -7
View File
@@ -3,7 +3,54 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 50,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 51,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -11,31 +58,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83, "line": 83,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 85, "line": 85,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +102,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88, "line": 88,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 90, "line": 90,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +153,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 94, "line": 94,
"args": [ "args": [
"'main_company'" "'main_company'"
+56 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 178, "line": 178,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 189, "line": 189,
"args": [ "args": [
"'name_uniq'" "'name_uniq'"
@@ -22,6 +26,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 190, "line": 190,
"args": [ "args": [
"'code_uniq'" "'code_uniq'"
@@ -33,6 +40,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_country"
],
"line": 193, "line": 193,
"args": [ "args": [
"'code'", "'code'",
@@ -45,29 +55,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 196, "line": 196,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 196, "line": 196,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 433, "line": 433,
@@ -75,28 +92,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 444, "line": 444,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 444, "line": 444,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 448, "line": 448,
"args": [ "args": [
"'type'" "'type'"
@@ -110,6 +136,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 451, "line": 451,
"args": [ "args": [
"'code'" "'code'"
@@ -123,14 +152,34 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 516, "line": 516,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 518,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 520, "line": 520,
"args": [ "args": [
"'zip'", "'zip'",
+13 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -11,28 +12,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 89, "line": 89,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 89, "line": 89,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"currency_currency"
],
"line": 93, "line": 93,
"args": [ "args": [
"'symbol'", "'symbol'",
+273 -45
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionReport", "class": "ActionReport",
"method": "__register__", "method": "__register__",
"line": 582, "line": 582,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 591, "line": 591,
"args": [ "args": [
"'report_name_module_uniq'" "'report_name_module_uniq'"
@@ -22,17 +26,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_report"
],
"line": 594, "line": 594,
"args": [ "args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))", "code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "action_report", "object": "action_report",
"operation": "update", "operation": "update",
"tables": [
"ir_action_report"
],
"line": 594, "line": 594,
"args": [ "args": [
"[action_report.extension]", "[action_report.extension]",
@@ -41,13 +51,14 @@
"kwargs": { "kwargs": {
"where": "action_report.extension == 'plain'" "where": "action_report.extension == 'plain'"
}, },
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')", "code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindow", "class": "ActionActWindow",
"method": "__register__", "method": "__register__",
"line": 774, "line": 774,
@@ -55,6 +66,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 782, "line": 782,
"args": [ "args": [
"'auto_refresh'" "'auto_refresh'"
@@ -66,6 +80,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 785, "line": 785,
"args": [ "args": [
"'window_name'" "'window_name'"
@@ -77,6 +94,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 788, "line": 788,
"args": [ "args": [
"'limit'", "'limit'",
@@ -89,17 +109,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 789, "line": 789,
"args": [ "args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))", "code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "act_window", "object": "act_window",
"operation": "update", "operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 789, "line": 789,
"args": [ "args": [
"[act_window.limit]", "[act_window.limit]",
@@ -108,13 +134,14 @@
"kwargs": { "kwargs": {
"where": "act_window.limit == 0" "where": "act_window.limit == 0"
}, },
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)", "code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 979, "line": 979,
@@ -122,6 +149,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 985, "line": 985,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -134,7 +164,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 1028, "line": 1028,
@@ -142,6 +173,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1034, "line": 1034,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -154,7 +188,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py", "module": "ir",
"file": "attachment.py",
"class": "Attachment", "class": "Attachment",
"method": "__register__", "method": "__register__",
"line": 59, "line": 59,
@@ -162,18 +197,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 69, "line": 69,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -182,25 +223,31 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)" "where": "(attachment.collision == 0) | (attachment.collision == Null)"
}, },
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))", "code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))", "code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "attachment", "object": "attachment",
"operation": "update", "operation": "update",
"tables": [
"ir_attachment"
],
"line": 74, "line": 74,
"args": [ "args": [
"[attachment.file_id]", "[attachment.file_id]",
@@ -209,13 +256,16 @@
"kwargs": { "kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)" "where": "(attachment.collision != 0) & (attachment.collision != Null)"
}, },
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))", "code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')" "condition": "table.column_exist('digest') and table.column_exist('collision')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80, "line": 80,
"args": [ "args": [
"'digest'" "'digest'"
@@ -228,6 +278,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81, "line": 81,
"args": [ "args": [
"'collision'" "'collision'"
@@ -240,6 +293,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 84, "line": 84,
"args": [ "args": [
"'resource_name'" "'resource_name'"
@@ -251,7 +307,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 92, "line": 92,
@@ -259,6 +316,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 103, "line": 103,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -271,7 +331,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelButton", "class": "ModelButton",
"method": "__register__", "method": "__register__",
"line": 895, "line": 895,
@@ -279,6 +340,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 901, "line": 901,
"args": [ "args": [
"'name_model_uniq'" "'name_model_uniq'"
@@ -290,7 +354,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1227, "line": 1227,
@@ -298,17 +363,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1236, "line": 1236,
"args": [ "args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 1236, "line": 1236,
"args": [ "args": [
"[model_data.module]", "[model_data.module]",
@@ -317,12 +388,15 @@
"kwargs": { "kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')" "where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
}, },
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))", "code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1242, "line": 1242,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -336,25 +410,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "Module", "class": "Module",
"method": "__register__", "method": "__register__",
"line": 97, "line": 97,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 107,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 112, "line": 112,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 112, "line": 112,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -363,23 +461,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'installed'" "where": "sql_table.state == 'installed'"
}, },
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')", "code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_module"
],
"line": 115, "line": 115,
"args": [ "args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_module"
],
"line": 115, "line": 115,
"args": [ "args": [
"[sql_table.state]", "[sql_table.state]",
@@ -388,23 +492,29 @@
"kwargs": { "kwargs": {
"where": "sql_table.state == 'uninstalled'" "where": "sql_table.state == 'uninstalled'"
}, },
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')", "code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 128, "line": 128,
"args": [ "args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))", "code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data_sql_table", "object": "model_data_sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 128, "line": 128,
"args": [ "args": [
"[model_data_sql_table.module]", "[model_data_sql_table.module]",
@@ -413,31 +523,81 @@
"kwargs": { "kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)" "where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
}, },
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))", "code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 337,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 341,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 370, "line": 370,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 379,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 380, "line": 380,
"args": [ "args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item')))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 380, "line": 380,
"args": [], "args": [],
"kwargs": { "kwargs": {
@@ -445,12 +605,15 @@
"values": "[cls.__name__]", "values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'" "where": "model_data.model == 'ir.module.module.config_wizard.item'"
}, },
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')", "code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model\n == 'ir.module.module.config_wizard.item'))",
"phase": "before_super" "phase": "before_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 391, "line": 391,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -463,7 +626,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -471,6 +635,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47, "line": 47,
"args": [ "args": [
"'code'" "'code'"
@@ -484,7 +651,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 117, "line": 117,
@@ -492,31 +660,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130, "line": 130,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 132, "line": 132,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -524,13 +703,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 135, "line": 135,
"args": [ "args": [
"'code'" "'code'"
@@ -543,7 +725,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 111, "line": 111,
@@ -551,6 +734,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 119, "line": 119,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -563,6 +749,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 120, "line": 120,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -575,17 +764,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_translation"
],
"line": 125, "line": 125,
"args": [ "args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))", "code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "ir_translation", "object": "ir_translation",
"operation": "update", "operation": "update",
"tables": [
"ir_translation"
],
"line": 125, "line": 125,
"args": [ "args": [
"[ir_translation.type]", "[ir_translation.type]",
@@ -594,13 +789,14 @@
"kwargs": { "kwargs": {
"where": "ir_translation.type == 'odt'" "where": "ir_translation.type == 'odt'"
}, },
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')", "code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 79, "line": 79,
@@ -608,18 +804,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 91, "line": 91,
"args": [ "args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))", "code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "select", "operation": "select",
"tables": [
"ir_trigger"
],
"line": 91, "line": 91,
"args": [ "args": [
"sql_table.id", "sql_table.id",
@@ -628,13 +830,16 @@
"kwargs": { "kwargs": {
"where": "sql_table.minimum_delay != Null" "where": "sql_table.minimum_delay != Null"
}, },
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)", "code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('minimum_delay')" "condition": "table.column_exist('minimum_delay')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 100, "line": 100,
"args": [ "args": [
"'minimum_delay'" "'minimum_delay'"
@@ -647,6 +852,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 108, "line": 108,
"args": [ "args": [
"model.model" "model.model"
@@ -654,50 +862,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 110, "line": 110,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 110, "line": 110,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 114, "line": 114,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 115, "line": 115,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -710,7 +930,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -718,6 +939,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 37, "line": 37,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -730,7 +954,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 601, "line": 601,
@@ -738,6 +963,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 606, "line": 606,
"args": [ "args": [
"'user'", "'user'",
+130 -20
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 85, "line": 85,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 91, "line": 91,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,31 +27,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_address"
],
"line": 102, "line": 102,
"args": [ "args": [
"*sql_table.update([sql_table.street], [value])" "*sql_table.update([sql_table.street], [value])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"party_address"
],
"line": 102, "line": 102,
"args": [ "args": [
"[sql_table.street]", "[sql_table.street]",
"[value]" "[value]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.street], [value])", "code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('streetbis')" "condition": "table.column_exist('streetbis')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address"
],
"line": 105, "line": 105,
"args": [ "args": [
"'streetbis'" "'streetbis'"
@@ -60,7 +73,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 312, "line": 312,
@@ -68,19 +82,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 327, "line": 327,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 329, "line": 329,
"args": [ "args": [
"country.code" "country.code"
@@ -88,25 +109,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 332, "line": 332,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 333, "line": 333,
"args": [ "args": [
"'country'" "'country'"
@@ -119,19 +144,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 337, "line": 337,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 339, "line": 339,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -139,25 +171,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 342, "line": 342,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 343, "line": 343,
"args": [ "args": [
"'language'" "'language'"
@@ -170,7 +206,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/category.py", "module": "party",
"file": "category.py",
"class": "Category", "class": "Category",
"method": "__register__", "method": "__register__",
"line": 35, "line": 35,
@@ -178,6 +215,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41, "line": 41,
"args": [ "args": [
"'name_parent_uniq'" "'name_parent_uniq'"
@@ -189,7 +229,29 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 99,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 100,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 110, "line": 110,
@@ -197,6 +259,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"party_party"
],
"line": 116, "line": 116,
"args": [ "args": [
"'name'", "'name'",
@@ -209,27 +274,49 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 345, "line": 345,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 349,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "insert", "operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 358, "line": 358,
"args": [ "args": [
"[table.party, table.lang]", "[table.party, table.lang]",
"party.select(party.id, party.lang)" "party.select(party.id, party.lang)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 360, "line": 360,
"args": [ "args": [
"party.id", "party.id",
@@ -243,18 +330,22 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 361, "line": 361,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('lang')" "condition": "party_h.column_exist('lang')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 362, "line": 362,
"args": [ "args": [
"'lang'" "'lang'"
@@ -267,7 +358,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 625, "line": 625,
@@ -275,18 +367,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party", "object": "party",
"operation": "select", "operation": "select",
"tables": [
"party_party"
],
"line": 638, "line": 638,
"args": [ "args": [
"party.id", "party.id",
@@ -296,13 +394,16 @@
"kwargs": { "kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)" "where": "(party.vat_number != Null) | (party.vat_country != Null)"
}, },
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
}, },
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 655, "line": 655,
"args": [ "args": [
"'vat_number'" "'vat_number'"
@@ -315,6 +416,9 @@
{ {
"object": "party_h", "object": "party_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_party"
],
"line": 656, "line": 656,
"args": [ "args": [
"'vat_country'" "'vat_country'"
@@ -327,17 +431,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 659, "line": 659,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -346,7 +456,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+138 -13
View File
@@ -3,7 +3,31 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 447, "line": 447,
@@ -11,84 +35,169 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 458, "line": 458,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 458, "line": 458,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 701,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 702,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 732, "line": 732,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 739,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 740,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 754, "line": 754,
"args": [ "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]))" "*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": {}, "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])))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 754, "line": 754,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns]", "columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, 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]))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
}, },
{ {
"object": "cost_price", "object": "cost_price",
"operation": "select", "operation": "select",
"tables": [
"product_cost_price"
],
"line": 756, "line": 756,
"args": [ "args": [
"*[Column(cost_price, c) for c in columns]" "*[Column(cost_price, c) for c in columns]"
], ],
"kwargs": {}, "kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])", "code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super", "phase": "after_super",
"condition": "cost_price_table.column_exist('template')" "condition": "cost_price_table.column_exist('template')"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPrice", "class": "ProductCostPrice",
"method": "__register__", "method": "__register__",
"line": 796, "line": 796,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 803,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{ {
"object": "table", "object": "table",
"operation": "add_column", "operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 810, "line": 810,
"args": [ "args": [
"'template'", "'template'",
@@ -102,31 +211,38 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 817, "line": 817,
"args": [ "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)))" "*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": {}, "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))))", "code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "insert", "operation": "insert",
"tables": [
"product_cost_price"
],
"line": 817, "line": 817,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", "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))" "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)))", "code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table.join(product, condition=sql_table.template == product.template)", "object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select", "operation": "select",
"tables": [],
"line": 820, "line": 820,
"args": [ "args": [
"*[Column(sql_table, c) for c in columns] + [product.id]" "*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -134,37 +250,46 @@
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "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))", "code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_cost_price"
],
"line": 827, "line": 827,
"args": [ "args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", "code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "delete", "operation": "delete",
"tables": [
"product_cost_price"
],
"line": 827, "line": 827,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)" "where": "(sql_table.template != Null) & (sql_table.product == Null)"
}, },
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", "code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('template')" "condition": "table.column_exist('template')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 830, "line": 830,
"args": [ "args": [
"'template'" "'template'"
+49 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/bom.py", "module": "production",
"file": "bom.py",
"class": "BOMInput", "class": "BOMInput",
"method": "__register__", "method": "__register__",
"line": 70, "line": 70,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 75, "line": 75,
"args": [ "args": [
"'product_bom_uniq'" "'product_bom_uniq'"
@@ -22,7 +26,31 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 44,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 45,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 263, "line": 263,
@@ -30,6 +58,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 269, "line": 269,
"args": [ "args": [
"'code'", "'code'",
@@ -43,17 +74,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 275, "line": 275,
"args": [ "args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 275, "line": 275,
"args": [ "args": [
"[table.planned_start_date]", "[table.planned_start_date]",
@@ -62,23 +99,29 @@
"kwargs": { "kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)" "where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
}, },
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", "code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 282, "line": 282,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 282, "line": 282,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -87,7 +130,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+27 -5
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 202, "line": 202,
@@ -11,31 +12,40 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [ "args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))", "code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "sqltable", "object": "sqltable",
"operation": "update", "operation": "update",
"tables": [
"res_user"
],
"line": 215, "line": 215,
"args": [], "args": [],
"kwargs": { "kwargs": {
"columns": "[sqltable.password_hash]", "columns": "[sqltable.password_hash]",
"values": "[password_hash_new]" "values": "[password_hash_new]"
}, },
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])", "code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super", "phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')" "condition": "table.column_exist('password') and table.column_exist('salt')"
}, },
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 218, "line": 218,
"args": [ "args": [
"'password'" "'password'"
@@ -48,6 +58,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 219, "line": 219,
"args": [ "args": [
"'salt'" "'salt'"
@@ -60,6 +73,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"res_user"
],
"line": 222, "line": 222,
"args": [ "args": [
"'name'" "'name'"
@@ -73,17 +89,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 225, "line": 225,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -92,7 +114,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 63, "line": 63,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 85, "line": 85,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 85, "line": 85,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 47, "line": 47,
"args": [ "args": [
"'product'", "'product'",
+33 -7
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 116, "line": 116,
@@ -11,31 +12,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 130, "line": 130,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 130, "line": 130,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.main_company, where=table.main_company != Null)" "table.select(table.id, table.main_company, where=table.main_company != Null)"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 132, "line": 132,
"args": [ "args": [
"table.id", "table.id",
@@ -44,38 +56,49 @@
"kwargs": { "kwargs": {
"where": "table.main_company != Null" "where": "table.main_company != Null"
}, },
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)", "code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 135, "line": 135,
"args": [ "args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", "code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "user_company", "object": "user_company",
"operation": "insert", "operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 135, "line": 135,
"args": [ "args": [
"[user_company.user, user_company.company]", "[user_company.user, user_company.company]",
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
], ],
"kwargs": {}, "kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", "code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table", "object": "table",
"operation": "select", "operation": "select",
"tables": [
"res_user"
],
"line": 137, "line": 137,
"args": [ "args": [
"table.id", "table.id",
@@ -84,13 +107,16 @@
"kwargs": { "kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)" "where": "(table.company != Null) & (table.company != table.main_company)"
}, },
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", "code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('main_company')" "condition": "table_h.column_exist('main_company')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"res_user"
],
"line": 141, "line": 141,
"args": [ "args": [
"'main_company'" "'main_company'"
+47 -7
View File
@@ -3,7 +3,8 @@
"module": "country", "module": "country",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Country", "class": "Country",
"method": "__register__", "method": "__register__",
"line": 178, "line": 178,
@@ -11,29 +12,36 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 187, "line": 187,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 187, "line": 187,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "Subdivision", "class": "Subdivision",
"method": "__register__", "method": "__register__",
"line": 424, "line": 424,
@@ -41,28 +49,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 435, "line": 435,
"args": [ "args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 435, "line": 435,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)" "where": "(data.module == 'country') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 439, "line": 439,
"args": [ "args": [
"'type'" "'type'"
@@ -76,6 +93,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 442, "line": 442,
"args": [ "args": [
"'code'" "'code'"
@@ -89,14 +109,34 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/country/country.py", "module": "country",
"file": "country.py",
"class": "PostalCode", "class": "PostalCode",
"method": "__register__", "method": "__register__",
"line": 507, "line": 507,
"operations": [ "operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 509,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 511, "line": 511,
"args": [ "args": [
"'zip'", "'zip'",
+13 -3
View File
@@ -3,7 +3,8 @@
"module": "currency", "module": "currency",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py", "module": "currency",
"file": "currency.py",
"class": "Currency", "class": "Currency",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -11,28 +12,37 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 83, "line": 83,
"args": [ "args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", "code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "data", "object": "data",
"operation": "delete", "operation": "delete",
"tables": [
"ir_model_data"
],
"line": 83, "line": 83,
"args": [], "args": [],
"kwargs": { "kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)" "where": "(data.module == 'currency') & (data.model == cls.__name__)"
}, },
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", "code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"currency_currency"
],
"line": 87, "line": 87,
"args": [ "args": [
"'symbol'", "'symbol'",
+102 -21
View File
@@ -3,7 +3,8 @@
"module": "ir", "module": "ir",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowView", "class": "ActionActWindowView",
"method": "__register__", "method": "__register__",
"line": 952, "line": 952,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 958, "line": 958,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py", "module": "ir",
"file": "action.py",
"class": "ActionActWindowDomain", "class": "ActionActWindowDomain",
"method": "__register__", "method": "__register__",
"line": 1001, "line": 1001,
@@ -31,6 +36,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1007, "line": 1007,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -43,7 +51,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py", "module": "ir",
"file": "cron.py",
"class": "Cron", "class": "Cron",
"method": "__register__", "method": "__register__",
"line": 92, "line": 92,
@@ -51,6 +60,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 103, "line": 103,
"args": [ "args": [
"'next_call'", "'next_call'",
@@ -63,7 +75,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py", "module": "ir",
"file": "export.py",
"class": "Export", "class": "Export",
"method": "__register__", "method": "__register__",
"line": 56, "line": 56,
@@ -71,18 +84,24 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_export"
],
"line": 67, "line": 67,
"args": [ "args": [
"*table.update([table.user], [table.create_uid])" "*table.update([table.user], [table.create_uid])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.user], [table.create_uid]))",
"phase": "after_super", "phase": "after_super",
"condition": "not user_exists" "condition": "not user_exists"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_export"
],
"line": 67, "line": 67,
"args": [ "args": [
"[table.user]", "[table.user]",
@@ -96,7 +115,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelButton", "class": "ModelButton",
"method": "__register__", "method": "__register__",
"line": 887, "line": 887,
@@ -104,6 +124,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 893, "line": 893,
"args": [ "args": [
"'name_model_uniq'" "'name_model_uniq'"
@@ -115,7 +138,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py", "module": "ir",
"file": "model.py",
"class": "ModelData", "class": "ModelData",
"method": "__register__", "method": "__register__",
"line": 1219, "line": 1219,
@@ -123,6 +147,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1225, "line": 1225,
"args": [ "args": [
"'db_id'" "'db_id'"
@@ -136,7 +163,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "module": "ir",
"file": "module.py",
"class": "ModuleConfigWizardItem", "class": "ModuleConfigWizardItem",
"method": "__register__", "method": "__register__",
"line": 323, "line": 323,
@@ -144,6 +172,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 329, "line": 329,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -156,7 +187,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "SequenceType", "class": "SequenceType",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -164,6 +196,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47, "line": 47,
"args": [ "args": [
"'code'" "'code'"
@@ -177,7 +212,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py", "module": "ir",
"file": "sequence.py",
"class": "Sequence", "class": "Sequence",
"method": "__register__", "method": "__register__",
"line": 122, "line": 122,
@@ -185,31 +221,42 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 135, "line": 135,
"args": [ "args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 135, "line": 135,
"args": [ "args": [
"[table.sequence_type]", "[table.sequence_type]",
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)" "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))", "code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "sequence_type", "object": "sequence_type",
"operation": "select", "operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 137, "line": 137,
"args": [ "args": [
"sequence_type.id" "sequence_type.id"
@@ -217,13 +264,16 @@
"kwargs": { "kwargs": {
"where": "sequence_type.code == table.code" "where": "sequence_type.code == table.code"
}, },
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)", "code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('code')" "condition": "table_h.column_exist('code')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 140, "line": 140,
"args": [ "args": [
"'code'" "'code'"
@@ -236,7 +286,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py", "module": "ir",
"file": "translation.py",
"class": "Translation", "class": "Translation",
"method": "__register__", "method": "__register__",
"line": 115, "line": 115,
@@ -244,6 +295,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 120, "line": 120,
"args": [ "args": [
"'translation_md5_uniq'" "'translation_md5_uniq'"
@@ -256,6 +310,9 @@
{ {
"object": "table", "object": "table",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 121, "line": 121,
"args": [ "args": [
"'src_md5'" "'src_md5'"
@@ -268,7 +325,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py", "module": "ir",
"file": "trigger.py",
"class": "Trigger", "class": "Trigger",
"method": "__register__", "method": "__register__",
"line": 79, "line": 79,
@@ -276,6 +334,9 @@
{ {
"object": "model", "object": "model",
"operation": "select", "operation": "select",
"tables": [
"ir_model"
],
"line": 92, "line": 92,
"args": [ "args": [
"model.model" "model.model"
@@ -283,50 +344,62 @@
"kwargs": { "kwargs": {
"where": "model.id == sql_table.action_model" "where": "model.id == sql_table.action_model"
}, },
"code": "model.select(model.model, where=model.id == sql_table.action_model)", "code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))", "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "sql_table", "object": "sql_table",
"operation": "update", "operation": "update",
"tables": [
"ir_trigger"
],
"line": 94, "line": 94,
"args": [ "args": [
"[sql_table.action]", "[sql_table.action]",
"[Concat(action_model, Concat('|', sql_table.action_function))]" "[Concat(action_model, Concat('|', sql_table.action_function))]"
], ],
"kwargs": {}, "kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])", "code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 98, "line": 98,
"args": [ "args": [
"'action_model'" "'action_model'"
], ],
"kwargs": {}, "kwargs": {},
"code": "table_h.drop_column('action_model')", "code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')" "condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 99, "line": 99,
"args": [ "args": [
"'action_function'" "'action_function'"
@@ -339,7 +412,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py", "module": "ir",
"file": "ui/icon.py",
"class": "Icon", "class": "Icon",
"method": "__register__", "method": "__register__",
"line": 31, "line": 31,
@@ -347,6 +421,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 37, "line": 37,
"args": [ "args": [
"'sequence'", "'sequence'",
@@ -359,7 +436,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py", "module": "ir",
"file": "ui/view.py",
"class": "ViewSearch", "class": "ViewSearch",
"method": "__register__", "method": "__register__",
"line": 616, "line": 616,
@@ -367,6 +445,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 621, "line": 621,
"args": [ "args": [
"'user'", "'user'",
+55 -14
View File
@@ -3,7 +3,8 @@
"module": "party", "module": "party",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "Address", "class": "Address",
"method": "__register__", "method": "__register__",
"line": 84, "line": 84,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"party_address"
],
"line": 88, "line": 88,
"args": [ "args": [
"'zip'", "'zip'",
@@ -23,7 +27,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/address.py", "module": "party",
"file": "address.py",
"class": "AddressFormat", "class": "AddressFormat",
"method": "__register__", "method": "__register__",
"line": 303, "line": 303,
@@ -31,19 +36,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 318, "line": 318,
"args": [ "args": [
"[table.country_code]", "[table.country_code]",
"country.select(country.code, where=country.id == table.country)" "country.select(country.code, where=country.id == table.country)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "country", "object": "country",
"operation": "select", "operation": "select",
"tables": [
"country_country"
],
"line": 320, "line": 320,
"args": [ "args": [
"country.code" "country.code"
@@ -51,25 +63,29 @@
"kwargs": { "kwargs": {
"where": "country.id == table.country" "where": "country.id == table.country"
}, },
"code": "country.select(country.code, where=country.id == table.country)", "code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 323, "line": 323,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('country')" "condition": "table_h.column_exist('country')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 324, "line": 324,
"args": [ "args": [
"'country'" "'country'"
@@ -82,19 +98,26 @@
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 328, "line": 328,
"args": [ "args": [
"[table.language_code]", "[table.language_code]",
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)" "language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "language", "object": "language",
"operation": "select", "operation": "select",
"tables": [
"ir_lang"
],
"line": 330, "line": 330,
"args": [ "args": [
"Substring(language.code, 0, 2)" "Substring(language.code, 0, 2)"
@@ -102,25 +125,29 @@
"kwargs": { "kwargs": {
"where": "language.id == table.language" "where": "language.id == table.language"
}, },
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 333, "line": 333,
"args": [ "args": [
"*query" "*query"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*query)", "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.column_exist('language')" "condition": "table_h.column_exist('language')"
}, },
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_column", "operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 334, "line": 334,
"args": [ "args": [
"'language'" "'language'"
@@ -133,7 +160,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "Configuration", "class": "Configuration",
"method": "__register__", "method": "__register__",
"line": 34, "line": 34,
@@ -141,32 +169,39 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_configuration"
],
"line": 45, "line": 45,
"args": [ "args": [
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
"phase": "after_super", "phase": "after_super",
"condition": "configuration.identifier_types != identifier_types" "condition": "configuration.identifier_types != identifier_types"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_configuration"
],
"line": 45, "line": 45,
"args": [ "args": [
"[table.identifier_types]", "[table.identifier_types]",
"[cls.identifier_types.sql_format(identifier_types)]" "[cls.identifier_types.sql_format(identifier_types)]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", "code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
"phase": "after_super", "phase": "after_super",
"condition": "configuration.identifier_types != identifier_types" "condition": "configuration.identifier_types != identifier_types"
} }
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Identifier", "class": "Identifier",
"method": "__register__", "method": "__register__",
"line": 780, "line": 780,
@@ -174,17 +209,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"party_identifier"
],
"line": 787, "line": 787,
"args": [ "args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"party_identifier"
],
"line": 787, "line": 787,
"args": [ "args": [
"[table.type]", "[table.type]",
@@ -193,7 +234,7 @@
"kwargs": { "kwargs": {
"where": "table.type == 'cn_rit'" "where": "table.type == 'cn_rit'"
}, },
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 494, "line": 494,
@@ -11,25 +12,31 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"product_product"
],
"line": 505, "line": 505,
"args": [ "args": [
"*table.update([table.suffix_code], [table.code])" "*table.update([table.suffix_code], [table.code])"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"product_product"
],
"line": 505, "line": 505,
"args": [ "args": [
"[table.suffix_code]", "[table.suffix_code]",
"[table.code]" "[table.code]"
], ],
"kwargs": {}, "kwargs": {},
"code": "table.update([table.suffix_code], [table.code])", "code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super", "phase": "after_super",
"condition": "fill_suffix_code" "condition": "fill_suffix_code"
} }
+21 -4
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/bom.py", "module": "production",
"file": "bom.py",
"class": "BOMInput", "class": "BOMInput",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -11,6 +12,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production_bom_input"
],
"line": 78, "line": 78,
"args": [ "args": [
"'uom'", "'uom'",
@@ -24,6 +28,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "drop_constraint", "operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 84, "line": 84,
"args": [ "args": [
"'product_bom_uniq'" "'product_bom_uniq'"
@@ -35,7 +42,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 264, "line": 264,
@@ -43,6 +51,9 @@
{ {
"object": "table_h", "object": "table_h",
"operation": "column_rename", "operation": "column_rename",
"tables": [
"production"
],
"line": 270, "line": 270,
"args": [ "args": [
"'uom'", "'uom'",
@@ -56,17 +67,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"production"
],
"line": 278, "line": 278,
"args": [ "args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", "code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "table", "object": "table",
"operation": "update", "operation": "update",
"tables": [
"production"
],
"line": 278, "line": 278,
"args": [ "args": [
"[table.state]", "[table.state]",
@@ -75,7 +92,7 @@
"kwargs": { "kwargs": {
"where": "table.state == 'cancel'" "where": "table.state == 'cancel'"
}, },
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", "code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super" "phase": "after_super"
} }
] ]
+10 -3
View File
@@ -3,7 +3,8 @@
"module": "res", "module": "res",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py", "module": "res",
"file": "user.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 207, "line": 207,
@@ -11,17 +12,23 @@
{ {
"object": "cursor", "object": "cursor",
"operation": "execute", "operation": "execute",
"tables": [
"ir_model_data"
],
"line": 215, "line": 215,
"args": [ "args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))", "code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super" "phase": "after_super"
}, },
{ {
"object": "model_data", "object": "model_data",
"operation": "update", "operation": "update",
"tables": [
"ir_model_data"
],
"line": 215, "line": 215,
"args": [ "args": [
"[model_data.noupdate]", "[model_data.noupdate]",
@@ -30,7 +37,7 @@
"kwargs": { "kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')" "where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
}, },
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))", "code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super" "phase": "after_super"
} }
] ]
+6 -3
View File
@@ -3,7 +3,8 @@
"module": "stock_lot", "module": "stock_lot",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", "module": "stock_lot",
"file": "product.py",
"class": "Template", "class": "Template",
"method": "__register__", "method": "__register__",
"line": 63, "line": 63,
@@ -11,18 +12,20 @@
{ {
"object": "cursor_select", "object": "cursor_select",
"operation": "execute", "operation": "execute",
"tables": [],
"line": 85, "line": 85,
"args": [ "args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
], ],
"kwargs": {}, "kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", "code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}, },
{ {
"object": "template_lot_type", "object": "template_lot_type",
"operation": "select", "operation": "select",
"tables": [],
"line": 85, "line": 85,
"args": [ "args": [
"template_lot_type.template" "template_lot_type.template"
@@ -30,7 +33,7 @@
"kwargs": { "kwargs": {
"distinct_on": "template_lot_type.template" "distinct_on": "template_lot_type.template"
}, },
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", "code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super", "phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
} }
+5 -1
View File
@@ -3,7 +3,8 @@
"module": "stock_product_location", "module": "stock_product_location",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", "module": "stock_product_location",
"file": "location.py",
"class": "ProductLocation", "class": "ProductLocation",
"method": "__register__", "method": "__register__",
"line": 41, "line": 41,
@@ -11,6 +12,9 @@
{ {
"object": "table", "object": "table",
"operation": "not_null_action", "operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 47, "line": 47,
"args": [ "args": [
"'product'", "'product'",

Some files were not shown because too many files have changed in this diff Show More