Public Access
Compare commits
2
Commits
24caf23986
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
388ee649c3 | ||
|
|
d4337ad1a5 |
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
|
||||
+49
-36
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 119,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 499,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 694,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -177,7 +181,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -195,7 +199,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -228,7 +232,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -312,13 +317,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 102,
|
||||
@@ -334,7 +340,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -351,7 +357,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -365,7 +371,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -382,7 +388,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -413,13 +419,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -451,13 +458,14 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -475,13 +483,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -504,7 +513,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
@@ -520,7 +530,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -537,7 +547,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -558,7 +568,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 74,
|
||||
@@ -574,7 +585,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -592,7 +603,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 313,
|
||||
|
||||
+16
-11
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 61,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -79,7 +81,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 89,
|
||||
@@ -102,7 +105,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -120,7 +124,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -149,7 +153,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -206,7 +211,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
|
||||
+12
-10
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -37,7 +38,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -52,14 +53,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -122,7 +124,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -52,7 +53,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+4
-3
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 200,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 30,
|
||||
|
||||
+57
-40
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 147,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 529,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 729,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 909,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 948,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 66,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -419,7 +428,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -436,7 +445,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -450,7 +459,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -498,13 +507,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -536,7 +546,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -557,7 +567,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -575,13 +586,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -604,7 +616,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 85,
|
||||
@@ -650,7 +663,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -667,7 +680,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -688,7 +701,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
@@ -704,7 +718,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -722,7 +736,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
|
||||
+16
-11
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 66,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -79,7 +81,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 91,
|
||||
@@ -102,7 +105,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -120,7 +124,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -149,7 +153,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -206,7 +211,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
|
||||
+12
-10
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -37,7 +38,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -52,14 +53,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -122,7 +124,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -52,7 +53,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+4
-3
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 194,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 216,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 53,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+57
-40
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 147,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 529,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 729,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 909,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 948,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -419,7 +428,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -436,7 +445,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -450,7 +459,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -498,13 +507,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -536,7 +546,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -557,7 +567,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -575,13 +586,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -604,7 +616,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -650,7 +663,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -667,7 +680,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -688,7 +701,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
@@ -704,7 +718,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -722,7 +736,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
|
||||
+24
-18
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 271,
|
||||
@@ -75,7 +77,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -92,7 +94,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -105,7 +107,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -154,7 +156,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -167,7 +169,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -211,7 +214,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 91,
|
||||
@@ -234,7 +238,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -252,7 +257,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -281,7 +286,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -338,7 +344,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
|
||||
+12
-10
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -37,7 +38,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -52,14 +53,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -122,7 +124,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -52,7 +53,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+4
-3
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 194,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 20,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 30,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 214,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+63
-45
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 152,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 545,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 745,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 933,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 972,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -436,7 +445,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -453,7 +462,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -484,7 +493,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -515,13 +524,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 362,
|
||||
@@ -546,7 +556,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -595,7 +606,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -616,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -634,13 +646,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -663,7 +676,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -709,7 +723,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -726,7 +740,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -747,7 +761,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 77,
|
||||
@@ -763,7 +778,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -781,7 +796,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -813,7 +828,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -859,7 +874,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
|
||||
+26
-19
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 67,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -75,7 +77,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -92,7 +94,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -105,7 +107,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -154,7 +156,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -167,7 +169,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -211,7 +214,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 40,
|
||||
@@ -231,7 +235,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 81,
|
||||
@@ -254,7 +259,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 268,
|
||||
@@ -286,7 +292,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -315,7 +321,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -372,7 +379,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 48,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 360,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 551,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 578,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -74,7 +76,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+4
-3
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 195,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 20,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 30,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 214,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+65
-46
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 149,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 525,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 705,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 893,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 932,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 71,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 95,
|
||||
@@ -436,7 +445,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -453,7 +462,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -484,7 +493,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -515,13 +524,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 354,
|
||||
@@ -546,7 +556,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -595,7 +606,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -616,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -634,13 +646,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -663,7 +676,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -709,7 +723,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -726,7 +740,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -747,7 +761,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -763,7 +778,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -781,7 +796,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -813,7 +828,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -859,7 +874,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 396,
|
||||
|
||||
+26
-19
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 67,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -75,7 +77,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -92,7 +94,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -105,7 +107,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -137,7 +139,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -154,7 +156,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -167,7 +169,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -211,7 +214,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 40,
|
||||
@@ -231,7 +235,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 81,
|
||||
@@ -254,7 +259,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 270,
|
||||
@@ -286,7 +292,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -315,7 +321,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -372,7 +379,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 53,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 401,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 595,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 622,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -74,7 +76,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -88,7 +90,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -105,7 +107,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 191,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
|
||||
+12
-9
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -81,7 +84,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -99,7 +102,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -150,7 +153,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 219,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,13 +114,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 287,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+72
-51
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 166,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 558,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 732,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 920,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 959,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 58,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
@@ -436,7 +445,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -453,7 +462,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -484,7 +493,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -515,13 +524,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 355,
|
||||
@@ -546,7 +556,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -595,7 +606,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -616,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -634,13 +646,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 39,
|
||||
@@ -664,7 +677,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 115,
|
||||
@@ -681,7 +695,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -698,7 +712,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -715,7 +729,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -760,7 +775,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -806,7 +822,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -823,7 +839,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -844,7 +860,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -860,7 +877,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -878,7 +895,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -910,7 +927,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -956,7 +973,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 389,
|
||||
|
||||
+28
-21
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 67,
|
||||
@@ -34,7 +35,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -50,7 +51,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -90,7 +92,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -120,7 +122,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -169,7 +171,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -182,7 +184,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -226,7 +229,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
@@ -246,7 +250,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
@@ -269,7 +274,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 322,
|
||||
@@ -301,7 +307,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -330,7 +336,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -387,7 +394,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -449,7 +456,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 416,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 616,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 647,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 45,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -74,7 +76,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -88,7 +90,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -105,7 +107,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 197,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 65,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
|
||||
+12
-9
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -81,7 +84,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -99,7 +102,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -150,7 +153,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 219,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,13 +114,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 287,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 61,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+72
-51
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 167,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 562,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 759,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 947,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 986,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 58,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -381,7 +389,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
@@ -436,7 +445,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -453,7 +462,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -467,7 +476,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -484,7 +493,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -515,13 +524,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 355,
|
||||
@@ -546,7 +556,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -595,7 +606,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -616,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -634,13 +646,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -664,7 +677,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 119,
|
||||
@@ -681,7 +695,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -698,7 +712,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -715,7 +729,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -760,7 +775,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -806,7 +822,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -823,7 +839,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -844,7 +860,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -860,7 +877,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -878,7 +895,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -910,7 +927,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -956,7 +973,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 389,
|
||||
|
||||
+28
-21
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 67,
|
||||
@@ -34,7 +35,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -50,7 +51,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 271,
|
||||
@@ -90,7 +92,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -120,7 +122,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -169,7 +171,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -182,7 +184,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -226,7 +229,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
@@ -246,7 +250,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -269,7 +274,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 357,
|
||||
@@ -301,7 +307,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -330,7 +336,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -387,7 +394,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -449,7 +456,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 432,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 646,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 677,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"module": "production",
|
||||
"file": "bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 70,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 45,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +99,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -110,7 +113,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -127,7 +130,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 205,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 62,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
|
||||
+12
-9
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -81,7 +84,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -99,7 +102,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -150,7 +153,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 256,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -134,7 +136,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 328,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+76
-53
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionKeyword",
|
||||
"method": "__register__",
|
||||
"line": 166,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 565,
|
||||
@@ -56,7 +58,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -73,13 +75,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 765,
|
||||
@@ -138,7 +141,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -155,13 +158,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 961,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1000,
|
||||
@@ -207,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -223,7 +229,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -241,7 +247,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -274,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 87,
|
||||
@@ -348,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 889,
|
||||
@@ -370,7 +378,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -403,7 +412,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -425,7 +434,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
@@ -458,7 +468,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -475,7 +485,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -489,7 +499,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -506,7 +516,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -537,13 +547,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 355,
|
||||
@@ -568,7 +579,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -617,7 +629,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -638,7 +650,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue_.py",
|
||||
"module": "ir",
|
||||
"file": "queue_.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 37,
|
||||
@@ -656,13 +669,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -686,7 +700,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -703,7 +718,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -720,7 +735,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -737,7 +752,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 24,
|
||||
@@ -782,7 +798,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
@@ -828,7 +845,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -845,7 +862,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -866,7 +883,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -882,7 +900,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -900,7 +918,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -932,7 +950,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -978,7 +996,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 580,
|
||||
|
||||
+28
-21
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
@@ -34,7 +35,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -50,7 +51,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 295,
|
||||
@@ -90,7 +92,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -120,7 +122,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -169,7 +171,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -182,7 +184,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -226,7 +229,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
@@ -246,7 +250,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 102,
|
||||
@@ -269,7 +274,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 356,
|
||||
@@ -301,7 +307,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -330,7 +336,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -387,7 +394,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -449,7 +456,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 424,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 638,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 669,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"module": "production",
|
||||
"file": "bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 70,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +99,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -110,7 +113,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -127,7 +130,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 202,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
|
||||
+12
-9
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -81,7 +84,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -99,7 +102,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -150,7 +153,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 178,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 433,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -150,7 +152,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 516,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+63
-46
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 570,
|
||||
@@ -33,7 +34,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -50,13 +51,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 770,
|
||||
@@ -115,7 +117,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -132,13 +134,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 966,
|
||||
@@ -161,7 +164,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1005,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -200,7 +205,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -218,7 +223,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -251,7 +256,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -325,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 886,
|
||||
@@ -347,7 +354,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -380,7 +388,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -402,7 +410,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
@@ -435,7 +444,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -452,7 +461,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -466,7 +475,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -483,7 +492,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -514,13 +523,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 355,
|
||||
@@ -545,7 +555,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -594,7 +605,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -615,7 +626,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -639,7 +651,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -656,7 +669,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -673,7 +686,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -690,7 +703,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -758,7 +772,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -775,13 +789,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 74,
|
||||
@@ -797,7 +812,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -815,7 +830,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -847,7 +862,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -893,7 +908,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 601,
|
||||
|
||||
+28
-21
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 85,
|
||||
@@ -34,7 +35,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -50,7 +51,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 312,
|
||||
@@ -90,7 +92,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -120,7 +122,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -169,7 +171,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -182,7 +184,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -226,7 +229,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
@@ -246,7 +250,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -269,7 +274,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 345,
|
||||
@@ -301,7 +307,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -330,7 +336,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -387,7 +394,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -449,7 +456,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 444,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 677,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 708,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"module": "production",
|
||||
"file": "bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 70,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +99,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -110,7 +113,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -127,7 +130,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 202,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
|
||||
+12
-9
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -81,7 +84,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -99,7 +102,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -150,7 +153,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 178,
|
||||
@@ -62,7 +63,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -76,13 +77,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 433,
|
||||
@@ -98,7 +100,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -112,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -150,7 +152,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 516,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
|
||||
+63
-46
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 582,
|
||||
@@ -33,7 +34,7 @@
|
||||
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -50,13 +51,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindow",
|
||||
"method": "__register__",
|
||||
"line": 774,
|
||||
@@ -115,7 +117,7 @@
|
||||
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -132,13 +134,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 979,
|
||||
@@ -161,7 +164,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1028,
|
||||
@@ -184,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -200,7 +205,7 @@
|
||||
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -218,7 +223,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
||||
},
|
||||
@@ -251,7 +256,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -325,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 895,
|
||||
@@ -347,7 +354,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -380,7 +388,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -402,7 +410,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
@@ -435,7 +444,7 @@
|
||||
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -452,7 +461,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -466,7 +475,7 @@
|
||||
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -483,7 +492,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -514,13 +523,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleDependency",
|
||||
"method": "__register__",
|
||||
"line": 337,
|
||||
@@ -545,7 +555,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -594,7 +605,7 @@
|
||||
"values": "[cls.__name__]",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -615,7 +626,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -639,7 +651,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -656,7 +669,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -673,7 +686,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -690,7 +703,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 111,
|
||||
@@ -758,7 +772,7 @@
|
||||
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -775,13 +789,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
@@ -797,7 +812,7 @@
|
||||
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -815,7 +830,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
@@ -847,7 +862,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -893,7 +908,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 601,
|
||||
|
||||
+28
-21
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 85,
|
||||
@@ -34,7 +35,7 @@
|
||||
"*sql_table.update([sql_table.street], [value])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
@@ -50,7 +51,7 @@
|
||||
"[value]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "sql_table.update([sql_table.street], [value])",
|
||||
"code": "sql_table.update(\n [sql_table.street],\n [value])",
|
||||
"phase": "after_super",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 312,
|
||||
@@ -90,7 +92,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -107,7 +109,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -120,7 +122,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -152,7 +154,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -169,7 +171,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -182,7 +184,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -226,7 +229,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
@@ -246,7 +250,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -269,7 +274,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 345,
|
||||
@@ -301,7 +307,7 @@
|
||||
"party.select(party.id, party.lang)"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
@@ -330,7 +336,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
|
||||
},
|
||||
@@ -387,7 +394,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -449,7 +456,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+21
-16
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 447,
|
||||
@@ -41,7 +43,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -57,14 +59,15 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductListPrice",
|
||||
"method": "__register__",
|
||||
"line": 701,
|
||||
@@ -86,7 +89,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 732,
|
||||
@@ -114,7 +118,7 @@
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"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]))"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -146,7 +150,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
},
|
||||
@@ -161,14 +165,15 @@
|
||||
"*[Column(cost_price, c) for c in columns]"
|
||||
],
|
||||
"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",
|
||||
"condition": "cost_price_table.column_exist('template')"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPrice",
|
||||
"method": "__register__",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -230,7 +235,7 @@
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -245,7 +250,7 @@
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -260,7 +265,7 @@
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
@@ -275,7 +280,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"module": "production",
|
||||
"file": "bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 70,
|
||||
@@ -25,7 +26,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
@@ -47,7 +49,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +99,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -110,7 +113,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -127,7 +130,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+6
-5
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 202,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
|
||||
],
|
||||
"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",
|
||||
"condition": "table.column_exist('password') and table.column_exist('salt')"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"columns": "[sqltable.password_hash]",
|
||||
"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",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -37,7 +38,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -55,7 +56,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -106,7 +107,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
+10
-7
@@ -3,7 +3,8 @@
|
||||
"module": "country",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Country",
|
||||
"method": "__register__",
|
||||
"line": 178,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,13 +34,14 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "Subdivision",
|
||||
"method": "__register__",
|
||||
"line": 424,
|
||||
@@ -55,7 +57,7 @@
|
||||
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -69,7 +71,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -107,7 +109,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 507,
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "currency",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
|
||||
"module": "currency",
|
||||
"file": "currency.py",
|
||||
"class": "Currency",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -33,7 +34,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
},
|
||||
{
|
||||
|
||||
+34
-21
@@ -3,7 +3,8 @@
|
||||
"module": "ir",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowView",
|
||||
"method": "__register__",
|
||||
"line": 952,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1001,
|
||||
@@ -49,7 +51,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -72,7 +75,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
|
||||
"module": "ir",
|
||||
"file": "export.py",
|
||||
"class": "Export",
|
||||
"method": "__register__",
|
||||
"line": 56,
|
||||
@@ -88,7 +92,7 @@
|
||||
"*table.update([table.user], [table.create_uid])"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 887,
|
||||
@@ -133,7 +138,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1219,
|
||||
@@ -157,7 +163,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
@@ -180,7 +187,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -204,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 122,
|
||||
@@ -221,7 +230,7 @@
|
||||
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -238,7 +247,7 @@
|
||||
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
@@ -255,7 +264,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 115,
|
||||
@@ -315,7 +325,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
@@ -333,7 +344,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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))])"
|
||||
],
|
||||
"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",
|
||||
"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))]"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
@@ -379,7 +390,7 @@
|
||||
"'action_model'"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 616,
|
||||
|
||||
+18
-14
@@ -3,7 +3,8 @@
|
||||
"module": "party",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "Address",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
@@ -26,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 303,
|
||||
@@ -44,7 +46,7 @@
|
||||
"country.select(country.code, where=country.id == table.country)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -61,7 +63,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -74,7 +76,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('country')"
|
||||
},
|
||||
@@ -106,7 +108,7 @@
|
||||
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -123,7 +125,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
@@ -136,7 +138,7 @@
|
||||
"*query"
|
||||
],
|
||||
"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",
|
||||
"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",
|
||||
"method": "__register__",
|
||||
"line": 34,
|
||||
@@ -174,7 +177,7 @@
|
||||
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
|
||||
],
|
||||
"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",
|
||||
"condition": "configuration.identifier_types != identifier_types"
|
||||
},
|
||||
@@ -190,14 +193,15 @@
|
||||
"[cls.identifier_types.sql_format(identifier_types)]"
|
||||
],
|
||||
"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",
|
||||
"condition": "configuration.identifier_types != identifier_types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 780,
|
||||
@@ -213,7 +217,7 @@
|
||||
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -230,7 +234,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 494,
|
||||
@@ -19,7 +20,7 @@
|
||||
"*table.update([table.suffix_code], [table.code])"
|
||||
],
|
||||
"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",
|
||||
"condition": "fill_suffix_code"
|
||||
},
|
||||
@@ -35,7 +36,7 @@
|
||||
"[table.code]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.update([table.suffix_code], [table.code])",
|
||||
"code": "table.update(\n [table.suffix_code],\n [table.code])",
|
||||
"phase": "after_super",
|
||||
"condition": "fill_suffix_code"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
|
||||
"module": "production",
|
||||
"file": "bom.py",
|
||||
"class": "BOMInput",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
@@ -41,7 +42,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 264,
|
||||
@@ -73,7 +75,7 @@
|
||||
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -90,7 +92,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+4
-3
@@ -3,7 +3,8 @@
|
||||
"module": "res",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
|
||||
"module": "res",
|
||||
"file": "user.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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'))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -36,7 +37,7 @@
|
||||
"kwargs": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_lot",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
|
||||
"module": "stock_lot",
|
||||
"file": "product.py",
|
||||
"class": "Template",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -17,7 +18,7 @@
|
||||
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
@@ -32,7 +33,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"module": "stock_product_location",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
|
||||
"module": "stock_product_location",
|
||||
"file": "location.py",
|
||||
"class": "ProductLocation",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
|
||||
+10
-8
@@ -3,7 +3,8 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/ir.py",
|
||||
"module": "company",
|
||||
"file": "ir.py",
|
||||
"class": "CronCompany",
|
||||
"method": "__register__",
|
||||
"line": 102,
|
||||
@@ -27,7 +28,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -61,7 +63,7 @@
|
||||
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -79,7 +81,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"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)))"
|
||||
],
|
||||
"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",
|
||||
"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))"
|
||||
],
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
@@ -130,7 +132,7 @@
|
||||
"kwargs": {
|
||||
"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",
|
||||
"condition": "table_h.column_exist('main_company')"
|
||||
},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user