Compare commits

...
2 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
141 changed files with 1989 additions and 1414 deletions
+2 -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,
+49 -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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -177,7 +181,7 @@
"*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')"
}, },
@@ -195,7 +199,7 @@
"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')"
}, },
@@ -210,7 +214,7 @@
"*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')"
}, },
@@ -228,7 +232,7 @@
"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')"
}, },
@@ -279,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,
@@ -295,7 +300,7 @@
"*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"
}, },
{ {
@@ -312,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,
@@ -334,7 +340,7 @@
"*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"
}, },
{ {
@@ -351,7 +357,7 @@
"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"
}, },
{ {
@@ -365,7 +371,7 @@
"*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"
}, },
{ {
@@ -382,7 +388,7 @@
"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"
}, },
{ {
@@ -396,7 +402,7 @@
"*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"
}, },
{ {
@@ -413,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,
@@ -435,7 +442,7 @@
"*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"
}, },
{ {
@@ -451,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,
@@ -475,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,
@@ -504,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,
@@ -520,7 +530,7 @@
"*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"
}, },
{ {
@@ -537,7 +547,7 @@
"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"
}, },
{ {
@@ -558,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,
@@ -574,7 +585,7 @@
"*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')"
}, },
@@ -592,7 +603,7 @@
"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')"
}, },
@@ -614,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,
@@ -637,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,
+16 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"[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')"
}, },
@@ -57,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,
@@ -79,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,
@@ -102,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,
@@ -120,7 +124,7 @@
"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')"
}, },
@@ -149,7 +153,7 @@
"*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')"
}, },
@@ -171,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,
@@ -187,7 +192,7 @@
"*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')"
}, },
@@ -206,7 +211,7 @@
"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')"
}, },
+12 -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,
@@ -20,7 +21,7 @@
"*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')"
}, },
@@ -37,7 +38,7 @@
"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')"
}, },
@@ -52,14 +53,15 @@
"*[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,
@@ -91,7 +93,7 @@
"*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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -122,7 +124,7 @@
"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')"
}, },
@@ -137,7 +139,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
+4 -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,
@@ -35,7 +36,7 @@
"*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"
}, },
{ {
@@ -52,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
+2 -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,
+57 -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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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,
@@ -419,7 +428,7 @@
"*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"
}, },
{ {
@@ -436,7 +445,7 @@
"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"
}, },
{ {
@@ -450,7 +459,7 @@
"*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"
}, },
{ {
@@ -467,7 +476,7 @@
"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"
}, },
{ {
@@ -481,7 +490,7 @@
"*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"
}, },
{ {
@@ -498,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,
@@ -520,7 +530,7 @@
"*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"
}, },
{ {
@@ -536,7 +546,7 @@
"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"
}, },
{ {
@@ -557,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,
@@ -575,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,
@@ -604,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,
@@ -650,7 +663,7 @@
"*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"
}, },
{ {
@@ -667,7 +680,7 @@
"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"
}, },
{ {
@@ -688,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,
@@ -704,7 +718,7 @@
"*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')"
}, },
@@ -722,7 +736,7 @@
"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')"
}, },
@@ -744,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,
@@ -767,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,
@@ -790,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,
+16 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"[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')"
}, },
@@ -57,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,
@@ -79,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,
@@ -102,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,
@@ -120,7 +124,7 @@
"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')"
}, },
@@ -149,7 +153,7 @@
"*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')"
}, },
@@ -171,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,
@@ -187,7 +192,7 @@
"*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')"
}, },
@@ -206,7 +211,7 @@
"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')"
}, },
+12 -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,
@@ -20,7 +21,7 @@
"*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')"
}, },
@@ -37,7 +38,7 @@
"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')"
}, },
@@ -52,14 +53,15 @@
"*[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,
@@ -91,7 +93,7 @@
"*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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -122,7 +124,7 @@
"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')"
}, },
@@ -137,7 +139,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
+4 -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,
@@ -35,7 +36,7 @@
"*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"
}, },
{ {
@@ -52,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
+8 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+57 -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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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,
@@ -419,7 +428,7 @@
"*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"
}, },
{ {
@@ -436,7 +445,7 @@
"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"
}, },
{ {
@@ -450,7 +459,7 @@
"*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"
}, },
{ {
@@ -467,7 +476,7 @@
"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"
}, },
{ {
@@ -481,7 +490,7 @@
"*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"
}, },
{ {
@@ -498,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,
@@ -520,7 +530,7 @@
"*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"
}, },
{ {
@@ -536,7 +546,7 @@
"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"
}, },
{ {
@@ -557,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,
@@ -575,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,
@@ -604,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,
@@ -650,7 +663,7 @@
"*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"
}, },
{ {
@@ -667,7 +680,7 @@
"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"
}, },
{ {
@@ -688,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,
@@ -704,7 +718,7 @@
"*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')"
}, },
@@ -722,7 +736,7 @@
"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')"
}, },
@@ -744,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,
@@ -767,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,
@@ -790,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,
+24 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"[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')"
}, },
@@ -57,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,
@@ -75,7 +77,7 @@
"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')"
}, },
@@ -92,7 +94,7 @@
"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')"
}, },
@@ -105,7 +107,7 @@
"*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')"
}, },
@@ -137,7 +139,7 @@
"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')"
}, },
@@ -154,7 +156,7 @@
"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')"
}, },
@@ -167,7 +169,7 @@
"*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')"
}, },
@@ -189,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,
@@ -211,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,
@@ -234,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,
@@ -252,7 +257,7 @@
"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')"
}, },
@@ -281,7 +286,7 @@
"*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')"
}, },
@@ -303,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,
@@ -319,7 +325,7 @@
"*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')"
}, },
@@ -338,7 +344,7 @@
"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')"
}, },
+12 -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,
@@ -20,7 +21,7 @@
"*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')"
}, },
@@ -37,7 +38,7 @@
"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')"
}, },
@@ -52,14 +53,15 @@
"*[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,
@@ -91,7 +93,7 @@
"*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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -122,7 +124,7 @@
"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')"
}, },
@@ -137,7 +139,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
+4 -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,
@@ -35,7 +36,7 @@
"*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"
}, },
{ {
@@ -52,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+4 -2
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 20, "line": 20,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
+8 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+63 -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": 152, "line": 152,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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,
@@ -436,7 +445,7 @@
"*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"
}, },
{ {
@@ -453,7 +462,7 @@
"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"
}, },
{ {
@@ -467,7 +476,7 @@
"*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"
}, },
{ {
@@ -484,7 +493,7 @@
"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"
}, },
{ {
@@ -498,7 +507,7 @@
"*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"
}, },
{ {
@@ -515,13 +524,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 362, "line": 362,
@@ -546,7 +556,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": 393, "line": 393,
@@ -579,7 +590,7 @@
"*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"
}, },
{ {
@@ -595,7 +606,7 @@
"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"
}, },
{ {
@@ -616,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,
@@ -634,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,
@@ -663,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,
@@ -709,7 +723,7 @@
"*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"
}, },
{ {
@@ -726,7 +740,7 @@
"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"
}, },
{ {
@@ -747,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,
@@ -763,7 +778,7 @@
"*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')"
}, },
@@ -781,7 +796,7 @@
"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')"
}, },
@@ -813,7 +828,7 @@
"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')"
}, },
@@ -828,7 +843,7 @@
"*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')"
}, },
@@ -844,7 +859,7 @@
"[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')"
}, },
@@ -859,7 +874,7 @@
"'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')"
}, },
@@ -881,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,
@@ -904,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,
@@ -927,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,
+26 -19
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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"[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')"
}, },
@@ -57,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,
@@ -75,7 +77,7 @@
"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')"
}, },
@@ -92,7 +94,7 @@
"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')"
}, },
@@ -105,7 +107,7 @@
"*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')"
}, },
@@ -137,7 +139,7 @@
"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')"
}, },
@@ -154,7 +156,7 @@
"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')"
}, },
@@ -167,7 +169,7 @@
"*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')"
}, },
@@ -189,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,
@@ -211,7 +214,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 40, "line": 40,
@@ -231,7 +235,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 81, "line": 81,
@@ -254,7 +259,8 @@
] ]
}, },
{ {
"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,
@@ -286,7 +292,7 @@
"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')"
}, },
@@ -315,7 +321,7 @@
"*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')"
}, },
@@ -337,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,
@@ -353,7 +360,7 @@
"*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')"
}, },
@@ -372,7 +379,7 @@
"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')"
}, },
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 48, "line": 48,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 360, "line": 360,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 551, "line": 551,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 578, "line": 578,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+6 -4
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 249, "line": 249,
@@ -57,7 +59,7 @@
"*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"
}, },
{ {
@@ -74,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+4 -2
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 20, "line": 20,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
+8 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+65 -46
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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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": 95, "line": 95,
@@ -436,7 +445,7 @@
"*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"
}, },
{ {
@@ -453,7 +462,7 @@
"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"
}, },
{ {
@@ -467,7 +476,7 @@
"*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"
}, },
{ {
@@ -484,7 +493,7 @@
"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"
}, },
{ {
@@ -498,7 +507,7 @@
"*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"
}, },
{ {
@@ -515,13 +524,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 354, "line": 354,
@@ -546,7 +556,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": 385, "line": 385,
@@ -579,7 +590,7 @@
"*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"
}, },
{ {
@@ -595,7 +606,7 @@
"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"
}, },
{ {
@@ -616,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,
@@ -634,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,
@@ -663,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,
@@ -709,7 +723,7 @@
"*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"
}, },
{ {
@@ -726,7 +740,7 @@
"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"
}, },
{ {
@@ -747,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,
@@ -763,7 +778,7 @@
"*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')"
}, },
@@ -781,7 +796,7 @@
"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')"
}, },
@@ -813,7 +828,7 @@
"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')"
}, },
@@ -828,7 +843,7 @@
"*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')"
}, },
@@ -844,7 +859,7 @@
"[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')"
}, },
@@ -859,7 +874,7 @@
"'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')"
}, },
@@ -881,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,
@@ -904,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,
@@ -927,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,
@@ -950,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,
+26 -19
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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"[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')"
}, },
@@ -57,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,
@@ -75,7 +77,7 @@
"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')"
}, },
@@ -92,7 +94,7 @@
"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')"
}, },
@@ -105,7 +107,7 @@
"*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')"
}, },
@@ -137,7 +139,7 @@
"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')"
}, },
@@ -154,7 +156,7 @@
"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')"
}, },
@@ -167,7 +169,7 @@
"*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')"
}, },
@@ -189,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,
@@ -211,7 +214,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 40, "line": 40,
@@ -231,7 +235,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 81, "line": 81,
@@ -254,7 +259,8 @@
] ]
}, },
{ {
"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,
@@ -286,7 +292,7 @@
"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')"
}, },
@@ -315,7 +321,7 @@
"*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')"
}, },
@@ -337,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,
@@ -353,7 +360,7 @@
"*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')"
}, },
@@ -372,7 +379,7 @@
"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')"
}, },
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 53, "line": 53,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 401, "line": 401,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 595, "line": 595,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 622, "line": 622,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+8 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 43, "line": 43,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 254, "line": 254,
@@ -57,7 +59,7 @@
"*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"
}, },
{ {
@@ -74,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"
}, },
{ {
@@ -88,7 +90,7 @@
"*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"
}, },
{ {
@@ -105,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+12 -9
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 21, "line": 21,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 51, "line": 51,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -64,7 +67,7 @@
"*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')"
}, },
@@ -81,7 +84,7 @@
"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')"
}, },
@@ -99,7 +102,7 @@
"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')"
}, },
@@ -115,7 +118,7 @@
"*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')"
}, },
@@ -132,7 +135,7 @@
"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')"
}, },
@@ -150,7 +153,7 @@
"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')"
}, },
+10 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,13 +114,14 @@
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+72 -51
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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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": 96, "line": 96,
@@ -436,7 +445,7 @@
"*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"
}, },
{ {
@@ -453,7 +462,7 @@
"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"
}, },
{ {
@@ -467,7 +476,7 @@
"*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"
}, },
{ {
@@ -484,7 +493,7 @@
"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"
}, },
{ {
@@ -498,7 +507,7 @@
"*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"
}, },
{ {
@@ -515,13 +524,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 355, "line": 355,
@@ -546,7 +556,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": 386, "line": 386,
@@ -579,7 +590,7 @@
"*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"
}, },
{ {
@@ -595,7 +606,7 @@
"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"
}, },
{ {
@@ -616,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,
@@ -634,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,
@@ -664,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,
@@ -681,7 +695,7 @@
"*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')"
}, },
@@ -698,7 +712,7 @@
"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')"
}, },
@@ -715,7 +729,7 @@
"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')"
}, },
@@ -737,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,
@@ -760,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,
@@ -806,7 +822,7 @@
"*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"
}, },
{ {
@@ -823,7 +839,7 @@
"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"
}, },
{ {
@@ -844,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,
@@ -860,7 +877,7 @@
"*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')"
}, },
@@ -878,7 +895,7 @@
"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')"
}, },
@@ -910,7 +927,7 @@
"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')"
}, },
@@ -925,7 +942,7 @@
"*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')"
}, },
@@ -941,7 +958,7 @@
"[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')"
}, },
@@ -956,7 +973,7 @@
"'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')"
}, },
@@ -978,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,
@@ -1001,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,
@@ -1024,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,
@@ -1047,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,
+28 -21
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,
@@ -34,7 +35,7 @@
"*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')"
}, },
@@ -50,7 +51,7 @@
"[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')"
}, },
@@ -72,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,
@@ -90,7 +92,7 @@
"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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -120,7 +122,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
@@ -169,7 +171,7 @@
"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')"
}, },
@@ -182,7 +184,7 @@
"*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')"
}, },
@@ -204,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,
@@ -226,7 +229,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 97, "line": 97,
@@ -246,7 +250,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 84, "line": 84,
@@ -269,7 +274,8 @@
] ]
}, },
{ {
"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,
@@ -301,7 +307,7 @@
"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')"
}, },
@@ -330,7 +336,7 @@
"*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')"
}, },
@@ -352,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,
@@ -368,7 +375,7 @@
"*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')"
}, },
@@ -387,7 +394,7 @@
"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')"
}, },
@@ -432,7 +439,7 @@
"*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"
}, },
{ {
@@ -449,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"
} }
] ]
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 54, "line": 54,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 416, "line": 416,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 616, "line": 616,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 647, "line": 647,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+8 -6
View File
@@ -3,7 +3,8 @@
"module": "production", "module": "production",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 45, "line": 45,
@@ -25,7 +26,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,
@@ -57,7 +59,7 @@
"*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"
}, },
{ {
@@ -74,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"
}, },
{ {
@@ -88,7 +90,7 @@
"*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"
}, },
{ {
@@ -105,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+12 -9
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 21, "line": 21,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 51, "line": 51,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 72, "line": 72,
@@ -64,7 +67,7 @@
"*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')"
}, },
@@ -81,7 +84,7 @@
"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')"
}, },
@@ -99,7 +102,7 @@
"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')"
}, },
@@ -115,7 +118,7 @@
"*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')"
}, },
@@ -132,7 +135,7 @@
"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')"
}, },
@@ -150,7 +153,7 @@
"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')"
}, },
+10 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,13 +114,14 @@
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+72 -51
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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -364,7 +372,7 @@
"*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"
}, },
{ {
@@ -381,7 +389,7 @@
"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"
}, },
{ {
@@ -403,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": 96, "line": 96,
@@ -436,7 +445,7 @@
"*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"
}, },
{ {
@@ -453,7 +462,7 @@
"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"
}, },
{ {
@@ -467,7 +476,7 @@
"*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"
}, },
{ {
@@ -484,7 +493,7 @@
"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"
}, },
{ {
@@ -498,7 +507,7 @@
"*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"
}, },
{ {
@@ -515,13 +524,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 355, "line": 355,
@@ -546,7 +556,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": 386, "line": 386,
@@ -579,7 +590,7 @@
"*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"
}, },
{ {
@@ -595,7 +606,7 @@
"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"
}, },
{ {
@@ -616,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,
@@ -634,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,
@@ -664,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,
@@ -681,7 +695,7 @@
"*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')"
}, },
@@ -698,7 +712,7 @@
"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')"
}, },
@@ -715,7 +729,7 @@
"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')"
}, },
@@ -737,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,
@@ -760,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,
@@ -806,7 +822,7 @@
"*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"
}, },
{ {
@@ -823,7 +839,7 @@
"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"
}, },
{ {
@@ -844,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,
@@ -860,7 +877,7 @@
"*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')"
}, },
@@ -878,7 +895,7 @@
"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')"
}, },
@@ -910,7 +927,7 @@
"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')"
}, },
@@ -925,7 +942,7 @@
"*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')"
}, },
@@ -941,7 +958,7 @@
"[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')"
}, },
@@ -956,7 +973,7 @@
"'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')"
}, },
@@ -978,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,
@@ -1001,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,
@@ -1024,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,
@@ -1047,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,
+28 -21
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,
@@ -34,7 +35,7 @@
"*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')"
}, },
@@ -50,7 +51,7 @@
"[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')"
}, },
@@ -72,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,
@@ -90,7 +92,7 @@
"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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -120,7 +122,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
@@ -169,7 +171,7 @@
"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')"
}, },
@@ -182,7 +184,7 @@
"*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')"
}, },
@@ -204,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,
@@ -226,7 +229,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 97, "line": 97,
@@ -246,7 +250,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 103, "line": 103,
@@ -269,7 +274,8 @@
] ]
}, },
{ {
"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,
@@ -301,7 +307,7 @@
"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')"
}, },
@@ -330,7 +336,7 @@
"*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')"
}, },
@@ -352,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,
@@ -368,7 +375,7 @@
"*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')"
}, },
@@ -387,7 +394,7 @@
"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')"
}, },
@@ -432,7 +439,7 @@
"*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"
}, },
{ {
@@ -449,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"
} }
] ]
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 54, "line": 54,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 432, "line": 432,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 646, "line": 646,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 677, "line": 677,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+10 -7
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,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 45, "line": 45,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 265, "line": 265,
@@ -79,7 +82,7 @@
"*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"
}, },
{ {
@@ -96,7 +99,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"
}, },
{ {
@@ -110,7 +113,7 @@
"*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"
}, },
{ {
@@ -127,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+12 -9
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 21, "line": 21,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 50, "line": 50,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -64,7 +67,7 @@
"*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')"
}, },
@@ -81,7 +84,7 @@
"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')"
}, },
@@ -99,7 +102,7 @@
"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')"
}, },
@@ -115,7 +118,7 @@
"*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')"
}, },
@@ -132,7 +135,7 @@
"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')"
}, },
@@ -150,7 +153,7 @@
"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')"
}, },
+10 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
}, },
{ {
@@ -134,7 +136,8 @@
] ]
}, },
{ {
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+76 -53
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,
@@ -26,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,
@@ -56,7 +58,7 @@
"*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"
}, },
{ {
@@ -73,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,
@@ -138,7 +141,7 @@
"*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"
}, },
{ {
@@ -155,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,
@@ -184,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,
@@ -207,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,
@@ -223,7 +229,7 @@
"*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')"
}, },
@@ -241,7 +247,7 @@
"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')"
}, },
@@ -256,7 +262,7 @@
"*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')"
}, },
@@ -274,7 +280,7 @@
"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')"
}, },
@@ -325,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,
@@ -348,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,
@@ -370,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,
@@ -386,7 +395,7 @@
"*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"
}, },
{ {
@@ -403,7 +412,7 @@
"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"
}, },
{ {
@@ -425,7 +434,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": 96, "line": 96,
@@ -458,7 +468,7 @@
"*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"
}, },
{ {
@@ -475,7 +485,7 @@
"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"
}, },
{ {
@@ -489,7 +499,7 @@
"*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"
}, },
{ {
@@ -506,7 +516,7 @@
"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"
}, },
{ {
@@ -520,7 +530,7 @@
"*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"
}, },
{ {
@@ -537,13 +547,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 355, "line": 355,
@@ -568,7 +579,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": 386, "line": 386,
@@ -601,7 +613,7 @@
"*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"
}, },
{ {
@@ -617,7 +629,7 @@
"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"
}, },
{ {
@@ -638,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,
@@ -656,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,
@@ -686,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,
@@ -703,7 +718,7 @@
"*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')"
}, },
@@ -720,7 +735,7 @@
"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')"
}, },
@@ -737,7 +752,7 @@
"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')"
}, },
@@ -759,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,
@@ -782,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,
@@ -828,7 +845,7 @@
"*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"
}, },
{ {
@@ -845,7 +862,7 @@
"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"
}, },
{ {
@@ -866,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,
@@ -882,7 +900,7 @@
"*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')"
}, },
@@ -900,7 +918,7 @@
"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')"
}, },
@@ -932,7 +950,7 @@
"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')"
}, },
@@ -947,7 +965,7 @@
"*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')"
}, },
@@ -963,7 +981,7 @@
"[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')"
}, },
@@ -978,7 +996,7 @@
"'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')"
}, },
@@ -1000,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,
@@ -1023,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,
@@ -1046,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,
@@ -1069,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,
@@ -1092,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,
+28 -21
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,
@@ -34,7 +35,7 @@
"*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')"
}, },
@@ -50,7 +51,7 @@
"[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')"
}, },
@@ -72,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,
@@ -90,7 +92,7 @@
"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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -120,7 +122,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
@@ -169,7 +171,7 @@
"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')"
}, },
@@ -182,7 +184,7 @@
"*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')"
}, },
@@ -204,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,
@@ -226,7 +229,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 99, "line": 99,
@@ -246,7 +250,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 102, "line": 102,
@@ -269,7 +274,8 @@
] ]
}, },
{ {
"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,
@@ -301,7 +307,7 @@
"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')"
}, },
@@ -330,7 +336,7 @@
"*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')"
}, },
@@ -352,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,
@@ -368,7 +375,7 @@
"*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')"
}, },
@@ -387,7 +394,7 @@
"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')"
}, },
@@ -432,7 +439,7 @@
"*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"
}, },
{ {
@@ -449,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"
} }
] ]
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 54, "line": 54,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 424, "line": 424,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 638, "line": 638,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 669, "line": 669,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+10 -7
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,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 44, "line": 44,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 250, "line": 250,
@@ -79,7 +82,7 @@
"*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"
}, },
{ {
@@ -96,7 +99,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"
}, },
{ {
@@ -110,7 +113,7 @@
"*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"
}, },
{ {
@@ -127,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+12 -9
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 21, "line": 21,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 50, "line": 50,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -64,7 +67,7 @@
"*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')"
}, },
@@ -81,7 +84,7 @@
"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')"
}, },
@@ -99,7 +102,7 @@
"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')"
}, },
@@ -115,7 +118,7 @@
"*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')"
}, },
@@ -132,7 +135,7 @@
"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')"
}, },
@@ -150,7 +153,7 @@
"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')"
}, },
+10 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
}, },
{ {
@@ -150,7 +152,8 @@
] ]
}, },
{ {
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
} }
] ]
+63 -46
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,
@@ -33,7 +34,7 @@
"*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"
}, },
{ {
@@ -50,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,
@@ -115,7 +117,7 @@
"*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"
}, },
{ {
@@ -132,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,
@@ -161,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,
@@ -184,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,
@@ -200,7 +205,7 @@
"*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')"
}, },
@@ -218,7 +223,7 @@
"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')"
}, },
@@ -233,7 +238,7 @@
"*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')"
}, },
@@ -251,7 +256,7 @@
"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')"
}, },
@@ -302,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,
@@ -325,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,
@@ -347,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,
@@ -363,7 +371,7 @@
"*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"
}, },
{ {
@@ -380,7 +388,7 @@
"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"
}, },
{ {
@@ -402,7 +410,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": 96, "line": 96,
@@ -435,7 +444,7 @@
"*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"
}, },
{ {
@@ -452,7 +461,7 @@
"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"
}, },
{ {
@@ -466,7 +475,7 @@
"*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"
}, },
{ {
@@ -483,7 +492,7 @@
"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"
}, },
{ {
@@ -497,7 +506,7 @@
"*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"
}, },
{ {
@@ -514,13 +523,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 355, "line": 355,
@@ -545,7 +555,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": 386, "line": 386,
@@ -578,7 +589,7 @@
"*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"
}, },
{ {
@@ -594,7 +605,7 @@
"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"
}, },
{ {
@@ -615,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,
@@ -639,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,
@@ -656,7 +669,7 @@
"*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')"
}, },
@@ -673,7 +686,7 @@
"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')"
}, },
@@ -690,7 +703,7 @@
"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')"
}, },
@@ -712,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,
@@ -758,7 +772,7 @@
"*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"
}, },
{ {
@@ -775,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,
@@ -797,7 +812,7 @@
"*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')"
}, },
@@ -815,7 +830,7 @@
"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')"
}, },
@@ -847,7 +862,7 @@
"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')"
}, },
@@ -862,7 +877,7 @@
"*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')"
}, },
@@ -878,7 +893,7 @@
"[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')"
}, },
@@ -893,7 +908,7 @@
"'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')"
}, },
@@ -915,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,
@@ -938,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,
+28 -21
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,
@@ -34,7 +35,7 @@
"*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')"
}, },
@@ -50,7 +51,7 @@
"[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')"
}, },
@@ -72,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,
@@ -90,7 +92,7 @@
"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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -120,7 +122,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
@@ -169,7 +171,7 @@
"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')"
}, },
@@ -182,7 +184,7 @@
"*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')"
}, },
@@ -204,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,
@@ -226,7 +229,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 99, "line": 99,
@@ -246,7 +250,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 110, "line": 110,
@@ -269,7 +274,8 @@
] ]
}, },
{ {
"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,
@@ -301,7 +307,7 @@
"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')"
}, },
@@ -330,7 +336,7 @@
"*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')"
}, },
@@ -352,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,
@@ -368,7 +375,7 @@
"*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')"
}, },
@@ -387,7 +394,7 @@
"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')"
}, },
@@ -432,7 +439,7 @@
"*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"
}, },
{ {
@@ -449,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"
} }
] ]
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 54, "line": 54,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 444, "line": 444,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 677, "line": 677,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 708, "line": 708,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+10 -7
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,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 44, "line": 44,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 266, "line": 266,
@@ -79,7 +82,7 @@
"*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"
}, },
{ {
@@ -96,7 +99,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"
}, },
{ {
@@ -110,7 +113,7 @@
"*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"
}, },
{ {
@@ -127,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+12 -9
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "ConfigurationLang", "class": "ConfigurationLang",
"method": "__register__", "method": "__register__",
"line": 21, "line": 21,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/party.py", "module": "company",
"file": "party.py",
"class": "PartyLang", "class": "PartyLang",
"method": "__register__", "method": "__register__",
"line": 50, "line": 50,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/company/res.py", "module": "company",
"file": "res.py",
"class": "User", "class": "User",
"method": "__register__", "method": "__register__",
"line": 69, "line": 69,
@@ -64,7 +67,7 @@
"*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')"
}, },
@@ -81,7 +84,7 @@
"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')"
}, },
@@ -99,7 +102,7 @@
"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')"
}, },
@@ -115,7 +118,7 @@
"*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')"
}, },
@@ -132,7 +135,7 @@
"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')"
}, },
@@ -150,7 +153,7 @@
"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')"
}, },
+10 -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,
@@ -62,7 +63,7 @@
"*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"
}, },
{ {
@@ -76,13 +77,14 @@
"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,
@@ -98,7 +100,7 @@
"*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"
}, },
{ {
@@ -112,7 +114,7 @@
"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"
}, },
{ {
@@ -150,7 +152,8 @@
] ]
}, },
{ {
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
}, },
{ {
+63 -46
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,
@@ -33,7 +34,7 @@
"*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"
}, },
{ {
@@ -50,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,
@@ -115,7 +117,7 @@
"*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"
}, },
{ {
@@ -132,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,
@@ -161,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,
@@ -184,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,
@@ -200,7 +205,7 @@
"*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')"
}, },
@@ -218,7 +223,7 @@
"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')"
}, },
@@ -233,7 +238,7 @@
"*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')"
}, },
@@ -251,7 +256,7 @@
"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')"
}, },
@@ -302,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,
@@ -325,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,
@@ -347,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,
@@ -363,7 +371,7 @@
"*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"
}, },
{ {
@@ -380,7 +388,7 @@
"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"
}, },
{ {
@@ -402,7 +410,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": 97, "line": 97,
@@ -435,7 +444,7 @@
"*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"
}, },
{ {
@@ -452,7 +461,7 @@
"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"
}, },
{ {
@@ -466,7 +475,7 @@
"*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"
}, },
{ {
@@ -483,7 +492,7 @@
"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"
}, },
{ {
@@ -497,7 +506,7 @@
"*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"
}, },
{ {
@@ -514,13 +523,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": "ModuleDependency", "class": "ModuleDependency",
"method": "__register__", "method": "__register__",
"line": 337, "line": 337,
@@ -545,7 +555,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": 370, "line": 370,
@@ -578,7 +589,7 @@
"*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"
}, },
{ {
@@ -594,7 +605,7 @@
"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"
}, },
{ {
@@ -615,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,
@@ -639,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,
@@ -656,7 +669,7 @@
"*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')"
}, },
@@ -673,7 +686,7 @@
"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')"
}, },
@@ -690,7 +703,7 @@
"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')"
}, },
@@ -712,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,
@@ -758,7 +772,7 @@
"*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"
}, },
{ {
@@ -775,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,
@@ -797,7 +812,7 @@
"*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')"
}, },
@@ -815,7 +830,7 @@
"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')"
}, },
@@ -847,7 +862,7 @@
"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')"
}, },
@@ -862,7 +877,7 @@
"*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')"
}, },
@@ -878,7 +893,7 @@
"[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')"
}, },
@@ -893,7 +908,7 @@
"'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')"
}, },
@@ -915,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,
@@ -938,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,
+28 -21
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,
@@ -34,7 +35,7 @@
"*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')"
}, },
@@ -50,7 +51,7 @@
"[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')"
}, },
@@ -72,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,
@@ -90,7 +92,7 @@
"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')"
}, },
@@ -107,7 +109,7 @@
"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')"
}, },
@@ -120,7 +122,7 @@
"*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')"
}, },
@@ -152,7 +154,7 @@
"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')"
}, },
@@ -169,7 +171,7 @@
"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')"
}, },
@@ -182,7 +184,7 @@
"*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')"
}, },
@@ -204,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,
@@ -226,7 +229,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py", "module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue", "class": "_ConfigurationValue",
"method": "__register__", "method": "__register__",
"line": 99, "line": 99,
@@ -246,7 +250,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/party/party.py", "module": "party",
"file": "party.py",
"class": "Party", "class": "Party",
"method": "__register__", "method": "__register__",
"line": 110, "line": 110,
@@ -269,7 +274,8 @@
] ]
}, },
{ {
"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,
@@ -301,7 +307,7 @@
"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')"
}, },
@@ -330,7 +336,7 @@
"*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')"
}, },
@@ -352,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,
@@ -368,7 +375,7 @@
"*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')"
}, },
@@ -387,7 +394,7 @@
"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')"
}, },
@@ -432,7 +439,7 @@
"*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"
}, },
{ {
@@ -449,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"
} }
] ]
+21 -16
View File
@@ -3,7 +3,8 @@
"module": "product", "module": "product",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py", "module": "product",
"file": "configuration.py",
"class": "ConfigurationDefaultCostPriceMethod", "class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 54, "line": 54,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "Product", "class": "Product",
"method": "__register__", "method": "__register__",
"line": 447, "line": 447,
@@ -41,7 +43,7 @@
"*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"
}, },
@@ -57,14 +59,15 @@
"[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", "class": "ProductListPrice",
"method": "__register__", "method": "__register__",
"line": 701, "line": 701,
@@ -86,7 +89,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/product/product.py", "module": "product",
"file": "product.py",
"class": "ProductCostPriceMethod", "class": "ProductCostPriceMethod",
"method": "__register__", "method": "__register__",
"line": 732, "line": 732,
@@ -114,7 +118,7 @@
"ProductCostPrice._table" "ProductCostPrice._table"
], ],
"kwargs": {}, "kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)", "code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super" "phase": "before_super"
}, },
{ {
@@ -129,7 +133,7 @@
"*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')"
}, },
@@ -146,7 +150,7 @@
"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')"
}, },
@@ -161,14 +165,15 @@
"*[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,
@@ -214,7 +219,7 @@
"*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')"
}, },
@@ -230,7 +235,7 @@
"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')"
}, },
@@ -245,7 +250,7 @@
"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')"
}, },
@@ -260,7 +265,7 @@
"*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')"
}, },
@@ -275,7 +280,7 @@
"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')"
}, },
+10 -7
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,
@@ -25,7 +26,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py", "module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence", "class": "ConfigurationProductionSequence",
"method": "__register__", "method": "__register__",
"line": 44, "line": 44,
@@ -47,7 +49,8 @@
] ]
}, },
{ {
"file": "/home/uha4/tmp/tryton/modules/production/production.py", "module": "production",
"file": "production.py",
"class": "Production", "class": "Production",
"method": "__register__", "method": "__register__",
"line": 263, "line": 263,
@@ -79,7 +82,7 @@
"*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"
}, },
{ {
@@ -96,7 +99,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"
}, },
{ {
@@ -110,7 +113,7 @@
"*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"
}, },
{ {
@@ -127,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"
} }
] ]
+6 -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,
@@ -19,7 +20,7 @@
"*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')"
}, },
@@ -35,7 +36,7 @@
"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')"
}, },
@@ -96,7 +97,7 @@
"*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"
}, },
{ {
@@ -113,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+8 -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,
@@ -20,7 +21,7 @@
"*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')"
}, },
@@ -37,7 +38,7 @@
"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')"
}, },
@@ -55,7 +56,7 @@
"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')"
}, },
@@ -71,7 +72,7 @@
"*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')"
}, },
@@ -88,7 +89,7 @@
"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')"
}, },
@@ -106,7 +107,7 @@
"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')"
}, },
+10 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,13 +34,14 @@
"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,
@@ -55,7 +57,7 @@
"*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"
}, },
{ {
@@ -69,7 +71,7 @@
"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"
}, },
{ {
@@ -107,7 +109,8 @@
] ]
}, },
{ {
"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,
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -33,7 +34,7 @@
"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"
}, },
{ {
+34 -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,
@@ -26,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,
@@ -49,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,
@@ -72,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,
@@ -88,7 +92,7 @@
"*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"
}, },
@@ -111,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,
@@ -133,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,
@@ -157,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,
@@ -180,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,
@@ -204,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,
@@ -221,7 +230,7 @@
"*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')"
}, },
@@ -238,7 +247,7 @@
"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')"
}, },
@@ -255,7 +264,7 @@
"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')"
}, },
@@ -277,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,
@@ -315,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,
@@ -333,7 +344,7 @@
"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')"
}, },
@@ -348,7 +359,7 @@
"*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')"
}, },
@@ -364,7 +375,7 @@
"[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')"
}, },
@@ -379,7 +390,7 @@
"'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')"
}, },
@@ -401,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,
@@ -424,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,
+18 -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,
@@ -26,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,
@@ -44,7 +46,7 @@
"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')"
}, },
@@ -61,7 +63,7 @@
"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')"
}, },
@@ -74,7 +76,7 @@
"*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')"
}, },
@@ -106,7 +108,7 @@
"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')"
}, },
@@ -123,7 +125,7 @@
"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')"
}, },
@@ -136,7 +138,7 @@
"*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')"
}, },
@@ -158,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,
@@ -174,7 +177,7 @@
"*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"
}, },
@@ -190,14 +193,15 @@
"[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,
@@ -213,7 +217,7 @@
"*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"
}, },
{ {
@@ -230,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
@@ -35,7 +36,7 @@
"[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"
} }
+6 -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,
@@ -41,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,
@@ -73,7 +75,7 @@
"*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"
}, },
{ {
@@ -90,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"
} }
] ]
+4 -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,
@@ -19,7 +20,7 @@
"*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"
}, },
{ {
@@ -36,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"
} }
] ]
+4 -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,
@@ -17,7 +18,7 @@
"*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)"
}, },
@@ -32,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)"
} }
+2 -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,
+10 -8
View File
@@ -3,7 +3,8 @@
"module": "company", "module": "company",
"files": [ "files": [
{ {
"file": "/home/uha4/tmp/tryton/modules/company/ir.py", "module": "company",
"file": "ir.py",
"class": "CronCompany", "class": "CronCompany",
"method": "__register__", "method": "__register__",
"line": 102, "line": 102,
@@ -27,7 +28,8 @@
] ]
}, },
{ {
"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,
@@ -44,7 +46,7 @@
"*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')"
}, },
@@ -61,7 +63,7 @@
"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')"
}, },
@@ -79,7 +81,7 @@
"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')"
}, },
@@ -95,7 +97,7 @@
"*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')"
}, },
@@ -112,7 +114,7 @@
"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')"
}, },
@@ -130,7 +132,7 @@
"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')"
}, },

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