Public Access
Compare commits
4
Commits
9417f2baa1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
388ee649c3 | ||
|
|
d4337ad1a5 | ||
|
|
24caf23986 | ||
|
|
f14f709649 |
+5
-3
@@ -99,7 +99,7 @@ class Module(object):
|
||||
if last_blocks == None:
|
||||
last_blocks = len(v) * [None,]
|
||||
|
||||
out.write(f"### {k}\n\n")
|
||||
new_version = k
|
||||
|
||||
# iterate all files / occureces
|
||||
for i, m in enumerate(v):
|
||||
@@ -115,7 +115,10 @@ class Module(object):
|
||||
|
||||
last_blocks[i] = key
|
||||
|
||||
|
||||
if new_version:
|
||||
out.write("\n")
|
||||
out.write(f"### {new_version}\n\n")
|
||||
new_version = None
|
||||
out.write(f"file: {m['file']} : {m['line']}\n")
|
||||
|
||||
for op in m["operations"]:
|
||||
@@ -150,7 +153,6 @@ class Module(object):
|
||||
|
||||
out.write("\n")
|
||||
|
||||
out.write("\n")
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
+11
-1
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 35,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 36,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 39,
|
||||
"args": [
|
||||
"'code'",
|
||||
|
||||
+157
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 123,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 499,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 508,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 511,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 511,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 702,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 705,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 708,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 709,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 709,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,18 +173,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -162,25 +199,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -189,13 +232,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -208,6 +254,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -220,6 +269,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -231,7 +283,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1100,
|
||||
@@ -239,17 +292,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1107,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1107,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -258,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,
|
||||
@@ -272,17 +332,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 118,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 118,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -291,23 +357,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 121,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 121,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -316,23 +388,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 134,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 134,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -341,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,
|
||||
@@ -355,17 +434,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 412,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 412,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -373,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,
|
||||
@@ -387,6 +473,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -394,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,
|
||||
@@ -408,6 +498,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 40,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -420,7 +513,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
@@ -428,17 +522,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -447,12 +547,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -465,7 +568,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 74,
|
||||
@@ -473,18 +577,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -493,13 +603,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -512,7 +625,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 300,
|
||||
@@ -520,6 +634,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 304,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -532,7 +649,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewTreeState",
|
||||
"method": "__register__",
|
||||
"line": 313,
|
||||
@@ -540,6 +658,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 317,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
|
||||
+54
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 77,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -48,7 +58,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -56,6 +67,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -67,7 +81,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 89,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -87,7 +105,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -95,19 +114,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 279,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 281,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -121,18 +147,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 282,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 283,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -145,7 +175,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyIdentifier",
|
||||
"method": "__register__",
|
||||
"line": 329,
|
||||
@@ -153,18 +184,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 341,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 341,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -174,13 +211,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 355,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -193,6 +233,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 356,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
|
||||
+42
-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,
|
||||
@@ -11,44 +12,56 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 398,
|
||||
"args": [
|
||||
"*[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,
|
||||
@@ -56,6 +69,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 444,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -69,31 +85,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 454,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -101,37 +124,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 461,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 461,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 464,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 230,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +28,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 236,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 236,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,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"
|
||||
}
|
||||
]
|
||||
|
||||
+19
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 210,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 210,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 213,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 214,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 217,
|
||||
"args": [
|
||||
"'name'"
|
||||
|
||||
+11
-1
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 36,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 37,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 40,
|
||||
"args": [
|
||||
"'code'",
|
||||
|
||||
+189
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 151,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 529,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 538,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 541,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 541,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 737,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 740,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 743,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 744,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 744,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 915,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 948,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 954,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 66,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 77,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1135,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1144,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1144,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1150,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -345,17 +420,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +445,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 122,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 122,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +476,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,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,
|
||||
@@ -428,17 +522,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +546,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 418,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +567,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -472,6 +576,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +601,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 40,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -505,7 +616,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 85,
|
||||
@@ -513,6 +625,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -525,6 +640,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -537,17 +655,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 99,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 99,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -556,12 +680,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -574,7 +701,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
@@ -582,18 +710,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -602,13 +736,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -621,7 +758,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 302,
|
||||
@@ -629,6 +767,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 306,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -641,7 +782,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 33,
|
||||
@@ -649,6 +791,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 39,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -661,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,
|
||||
@@ -669,6 +815,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 327,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
|
||||
+54
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 79,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 79,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -48,7 +58,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -56,6 +67,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -67,7 +81,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 91,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 97,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -87,7 +105,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -95,19 +114,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 294,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -121,18 +147,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 295,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -145,7 +175,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyIdentifier",
|
||||
"method": "__register__",
|
||||
"line": 439,
|
||||
@@ -153,18 +184,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -174,13 +211,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 468,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -193,6 +233,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 469,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
|
||||
+42
-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,
|
||||
@@ -11,44 +12,56 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 404,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 404,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 406,
|
||||
"args": [
|
||||
"*[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,
|
||||
@@ -56,6 +69,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 452,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -69,31 +85,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 459,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 459,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 462,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -101,37 +124,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 469,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 469,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 472,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +28,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 234,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 234,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,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"
|
||||
}
|
||||
]
|
||||
|
||||
+19
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 207,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 208,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 211,
|
||||
"args": [
|
||||
"'name'"
|
||||
|
||||
+29
-6
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 43,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 44,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 50,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 50,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,23 +92,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+189
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 151,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 529,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 538,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 541,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 541,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 737,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 740,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 743,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 744,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 744,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 915,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 948,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 954,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 60,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1135,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1144,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1144,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1150,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,7 +411,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -345,17 +420,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +445,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 122,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 122,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +476,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,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,
|
||||
@@ -428,17 +522,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +546,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 418,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +567,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -472,6 +576,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +601,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 40,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -505,7 +616,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -513,6 +625,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -525,6 +640,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -537,17 +655,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -556,12 +680,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -574,7 +701,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 76,
|
||||
@@ -582,18 +710,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -602,13 +736,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -621,7 +758,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 303,
|
||||
@@ -629,6 +767,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 307,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -641,7 +782,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 33,
|
||||
@@ -649,6 +791,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 39,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -661,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,
|
||||
@@ -669,6 +815,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 327,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
|
||||
+84
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -48,7 +58,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 271,
|
||||
@@ -56,19 +67,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 286,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 288,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -76,25 +94,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 291,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -107,19 +129,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 298,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -127,25 +156,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 301,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 302,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -158,7 +191,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
@@ -166,6 +200,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -177,7 +214,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 91,
|
||||
@@ -185,6 +223,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 97,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -197,7 +238,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -205,19 +247,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 294,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -231,18 +280,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 295,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -255,7 +308,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyIdentifier",
|
||||
"method": "__register__",
|
||||
"line": 439,
|
||||
@@ -263,18 +317,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -284,13 +344,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 468,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -303,6 +366,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 469,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
|
||||
+42
-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,
|
||||
@@ -11,44 +12,56 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 461,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 461,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 463,
|
||||
"args": [
|
||||
"*[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,
|
||||
@@ -56,6 +69,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 509,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -69,31 +85,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 516,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 516,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 519,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -101,37 +124,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 526,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 526,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 529,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +28,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 234,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 234,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,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"
|
||||
}
|
||||
]
|
||||
|
||||
+19
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 207,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 208,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 211,
|
||||
"args": [
|
||||
"'name'"
|
||||
|
||||
@@ -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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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)"
|
||||
}
|
||||
|
||||
+48
-1
@@ -1,5 +1,52 @@
|
||||
{
|
||||
"version": "5.6",
|
||||
"module": "company",
|
||||
"files": []
|
||||
"files": [
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 20,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 21,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 44,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
+29
-6
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 48,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 48,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,23 +92,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 223,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 223,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+268
-44
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 156,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 545,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 554,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 557,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 557,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 753,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 756,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 759,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 760,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 760,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 939,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 972,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 978,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1157,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1166,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1166,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1172,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,25 +411,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 113,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 118,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 118,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +462,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 121,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 121,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +493,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 134,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 134,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,31 +524,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 366,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 393,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 402,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 403,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 403,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +606,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 414,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -472,6 +636,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +661,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 40,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -505,7 +676,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -513,6 +685,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -525,6 +700,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -537,17 +715,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -556,12 +740,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -574,7 +761,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 77,
|
||||
@@ -582,18 +770,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -602,13 +796,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 98,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -621,6 +818,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -628,50 +828,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 112,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 113,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -684,7 +896,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 330,
|
||||
@@ -692,6 +905,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 334,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -704,7 +920,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 33,
|
||||
@@ -712,6 +929,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 39,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -724,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,
|
||||
@@ -732,6 +953,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 327,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
|
||||
+119
-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": 67,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -48,7 +58,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -56,19 +67,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 280,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 282,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -76,25 +94,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 286,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -107,19 +129,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 290,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -127,25 +156,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 295,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -158,7 +191,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -166,6 +200,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -177,7 +214,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 40,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 81,
|
||||
@@ -185,6 +244,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -197,27 +259,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 268,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 272,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 281,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 283,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -231,18 +315,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 284,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -255,7 +343,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 428,
|
||||
@@ -263,18 +352,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 440,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 440,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -284,13 +379,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 457,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -303,6 +401,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 458,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 48,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 360,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 371,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 371,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 552,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 578,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 585,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 586,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 601,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 601,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 603,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 641,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 648,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 655,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 655,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 658,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 665,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 665,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
||||
},
|
||||
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
|
||||
"code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 668,
|
||||
"args": [
|
||||
"'template'"
|
||||
|
||||
@@ -3,7 +3,31 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 44,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 249,
|
||||
@@ -11,6 +35,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 255,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +51,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 261,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 261,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,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"
|
||||
}
|
||||
]
|
||||
|
||||
+19
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 205,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 205,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 208,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 209,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 212,
|
||||
"args": [
|
||||
"'name'"
|
||||
|
||||
@@ -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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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)"
|
||||
}
|
||||
|
||||
+48
-1
@@ -1,5 +1,52 @@
|
||||
{
|
||||
"version": "5.8",
|
||||
"module": "company",
|
||||
"files": []
|
||||
"files": [
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 20,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 21,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 44,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
+29
-6
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 48,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 48,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,23 +92,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 223,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 223,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+273
-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": 149,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 153,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 525,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 534,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 537,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 537,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 713,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 716,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 719,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 720,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 720,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 899,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 932,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 938,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 71,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1159,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1168,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1168,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1174,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,25 +411,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 95,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 110,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 110,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +462,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 113,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 113,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +493,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 126,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 126,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,31 +524,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 358,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 385,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 394,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +606,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 406,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -472,6 +636,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +661,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 36,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -505,7 +676,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -513,6 +685,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -525,6 +700,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -537,17 +715,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -556,12 +740,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -574,7 +761,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -582,18 +770,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -602,13 +796,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -621,6 +818,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -628,50 +828,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -684,7 +896,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 327,
|
||||
@@ -692,6 +905,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 331,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -704,7 +920,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -712,6 +929,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 35,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -724,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,
|
||||
@@ -732,6 +953,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 328,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
@@ -744,7 +968,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewSearch",
|
||||
"method": "__register__",
|
||||
"line": 396,
|
||||
@@ -752,6 +977,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 401,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+119
-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": 67,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -48,7 +58,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -56,19 +67,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 280,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 282,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -76,25 +94,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 286,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -107,19 +129,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 290,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -127,25 +156,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 295,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -158,7 +191,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -166,6 +200,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -177,7 +214,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 40,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 81,
|
||||
@@ -185,6 +244,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -197,27 +259,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 270,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 274,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 283,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -231,18 +315,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 286,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 287,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -255,7 +343,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 445,
|
||||
@@ -263,18 +352,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 457,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 457,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -284,13 +379,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 474,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -303,6 +401,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 475,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 53,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 54,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 401,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 412,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 412,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 596,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 622,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 629,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 630,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 645,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 645,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 647,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 685,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 692,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 699,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 699,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 702,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 709,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 709,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 712,
|
||||
"args": [
|
||||
"'template'"
|
||||
|
||||
@@ -3,7 +3,31 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 43,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 44,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 254,
|
||||
@@ -11,6 +35,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 260,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +51,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 266,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 266,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,23 +76,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 273,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 273,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -68,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 204,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 207,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 208,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 211,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 214,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 214,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+79
-7
@@ -3,7 +3,54 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 22,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 52,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
@@ -11,31 +58,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +102,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +153,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 97,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+50
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 43,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 46,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,36 +92,62 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [],
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 289,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 291,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 76,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 76,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+297
-50
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 170,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 558,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 567,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 570,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 570,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 740,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 743,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 746,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 747,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 747,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 926,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 959,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 965,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 58,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 79,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1203,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1212,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1212,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1218,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,25 +411,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +462,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +493,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,31 +524,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 359,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 386,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +606,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -472,6 +636,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +661,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -506,7 +677,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 115,
|
||||
@@ -514,31 +686,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 128,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 128,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -546,13 +729,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 133,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -565,7 +751,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -573,6 +760,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 36,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -585,7 +775,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -593,6 +784,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -605,6 +799,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -617,17 +814,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -636,12 +839,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -654,7 +860,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -662,18 +869,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -682,13 +895,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -701,6 +917,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -708,50 +927,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -764,7 +995,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 327,
|
||||
@@ -772,6 +1004,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 331,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -784,7 +1019,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -792,6 +1028,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 35,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -804,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,
|
||||
@@ -812,6 +1052,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 321,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
@@ -824,7 +1067,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewSearch",
|
||||
"method": "__register__",
|
||||
"line": 389,
|
||||
@@ -832,6 +1076,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 394,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+130
-20
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,31 +27,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -60,7 +73,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 278,
|
||||
@@ -68,19 +82,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 293,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 295,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -88,25 +109,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 298,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 299,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -119,19 +144,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 303,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 305,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -139,25 +171,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 308,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 309,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -170,7 +206,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -178,6 +215,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -189,7 +229,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 98,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 84,
|
||||
@@ -197,6 +259,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 90,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -209,27 +274,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 322,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 326,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 335,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 337,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -243,18 +330,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 338,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 339,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -267,7 +358,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 515,
|
||||
@@ -275,18 +367,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 528,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 528,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -296,13 +394,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 545,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -315,6 +416,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 546,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
@@ -327,17 +431,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 549,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 549,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -346,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"
|
||||
}
|
||||
]
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 55,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 416,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 427,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 427,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 617,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 647,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 654,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 655,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 670,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 670,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 672,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 714,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 721,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 728,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 728,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 731,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 738,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 738,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 741,
|
||||
"args": [
|
||||
"'template'"
|
||||
|
||||
@@ -3,7 +3,31 @@
|
||||
"module": "production",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 45,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 46,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 264,
|
||||
@@ -11,6 +35,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 270,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -24,17 +51,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 276,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 276,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -43,23 +76,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 283,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 283,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -68,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 210,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 210,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 213,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 214,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 217,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 220,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 220,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+79
-7
@@ -3,7 +3,54 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 22,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 52,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 72,
|
||||
@@ -11,31 +58,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +102,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +153,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 97,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+50
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 43,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 46,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,36 +92,62 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [],
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 289,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 291,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+297
-50
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 171,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 562,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 571,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 574,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 574,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 767,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 770,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 773,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 774,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 774,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 953,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 986,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 992,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 58,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 68,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 79,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 97,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1199,
|
||||
@@ -299,17 +364,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1208,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1208,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -318,12 +389,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1214,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -337,25 +411,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -364,23 +462,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -389,23 +493,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -414,31 +524,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 359,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 386,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -446,12 +606,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -464,7 +627,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
|
||||
"module": "ir",
|
||||
"file": "queue.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 36,
|
||||
@@ -472,6 +636,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -479,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,
|
||||
@@ -493,6 +661,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -506,7 +677,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 119,
|
||||
@@ -514,31 +686,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 134,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -546,13 +729,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 137,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -565,7 +751,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 32,
|
||||
@@ -573,6 +760,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 36,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -585,7 +775,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 80,
|
||||
@@ -593,6 +784,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -605,6 +799,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -617,17 +814,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -636,12 +839,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -654,7 +860,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -662,18 +869,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -682,13 +895,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -701,6 +917,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -708,50 +927,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -764,7 +995,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 327,
|
||||
@@ -772,6 +1004,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 331,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -784,7 +1019,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -792,6 +1028,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 35,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -804,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,
|
||||
@@ -812,6 +1052,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 321,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
@@ -824,7 +1067,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewSearch",
|
||||
"method": "__register__",
|
||||
"line": 389,
|
||||
@@ -832,6 +1076,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 394,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+130
-20
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,31 +27,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -60,7 +73,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 271,
|
||||
@@ -68,19 +82,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 286,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 288,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -88,25 +109,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 291,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 292,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -119,19 +144,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 296,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 298,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -139,25 +171,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 301,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 302,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -170,7 +206,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -178,6 +215,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -189,7 +229,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 98,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
@@ -197,6 +259,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -209,27 +274,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 357,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 361,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 370,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 372,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -243,18 +330,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 373,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 374,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -267,7 +358,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 625,
|
||||
@@ -275,18 +367,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -296,13 +394,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 655,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -315,6 +416,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 656,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
@@ -327,17 +431,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -346,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"
|
||||
}
|
||||
]
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 55,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 432,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 443,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 443,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 647,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 677,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 684,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 685,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 700,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 700,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 702,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 749,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 756,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 763,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 763,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 766,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 773,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 773,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 776,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
@@ -22,7 +26,31 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 45,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 46,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
@@ -30,6 +58,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 271,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -43,17 +74,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 277,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 277,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -62,23 +99,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 284,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 284,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -87,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 218,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 218,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 221,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 222,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 228,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+79
-7
@@ -3,7 +3,54 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 22,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -11,31 +58,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +102,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 90,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +153,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+53
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 42,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 43,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 46,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 49,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,28 +92,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 267,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 267,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 271,
|
||||
"args": [
|
||||
"'type'"
|
||||
@@ -110,14 +136,34 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 328,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 330,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 332,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 76,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 76,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+307
-52
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_action_keyword"
|
||||
],
|
||||
"line": 170,
|
||||
"args": [
|
||||
"['keyword', 'model']",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionReport",
|
||||
"method": "__register__",
|
||||
"line": 565,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 574,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -42,17 +50,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 577,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 577,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -61,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,
|
||||
@@ -75,6 +90,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 773,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -86,6 +104,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 776,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -97,6 +118,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 779,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -109,17 +133,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 780,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 780,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -128,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,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 967,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1000,
|
||||
@@ -162,6 +197,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 1006,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -174,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -182,18 +221,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -202,25 +247,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -229,13 +280,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -248,6 +302,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -260,6 +317,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 87,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 98,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -291,7 +355,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 889,
|
||||
@@ -299,6 +364,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_model_button"
|
||||
],
|
||||
"line": 895,
|
||||
"args": [
|
||||
"'name_model_uniq'"
|
||||
@@ -310,7 +378,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1228,
|
||||
@@ -318,17 +387,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1237,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1237,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -337,12 +412,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1243,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -356,25 +434,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -383,23 +485,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -408,23 +516,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -433,31 +547,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 359,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 386,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -465,12 +629,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -483,7 +650,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue_.py",
|
||||
"module": "ir",
|
||||
"file": "queue_.py",
|
||||
"class": "Queue",
|
||||
"method": "__register__",
|
||||
"line": 37,
|
||||
@@ -491,6 +659,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_queue"
|
||||
],
|
||||
"line": 43,
|
||||
"args": [
|
||||
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
|
||||
@@ -498,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,
|
||||
@@ -512,6 +684,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -525,7 +700,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -533,31 +709,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -565,13 +752,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -584,7 +774,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
|
||||
"module": "ir",
|
||||
"file": "session.py",
|
||||
"class": "Session",
|
||||
"method": "__register__",
|
||||
"line": 24,
|
||||
@@ -592,6 +783,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_session"
|
||||
],
|
||||
"line": 28,
|
||||
"args": [
|
||||
"'create_uid'",
|
||||
@@ -604,7 +798,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
@@ -612,6 +807,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -624,6 +822,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -636,17 +837,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -655,12 +862,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 99,
|
||||
"args": [
|
||||
"['lang', 'type', 'name']",
|
||||
@@ -673,7 +883,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 73,
|
||||
@@ -681,18 +892,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -701,13 +918,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -720,6 +940,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -727,50 +950,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 104,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -783,7 +1018,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "TriggerLog",
|
||||
"method": "__register__",
|
||||
"line": 329,
|
||||
@@ -791,6 +1027,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_trigger_log"
|
||||
],
|
||||
"line": 333,
|
||||
"args": [
|
||||
"['trigger', 'record_id']",
|
||||
@@ -803,7 +1042,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
@@ -811,6 +1051,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 35,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -823,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,
|
||||
@@ -831,6 +1075,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_optional"
|
||||
],
|
||||
"line": 448,
|
||||
"args": [
|
||||
"['view_id', 'user']",
|
||||
@@ -843,7 +1090,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewTreeState",
|
||||
"method": "__register__",
|
||||
"line": 508,
|
||||
@@ -851,6 +1099,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "index_action",
|
||||
"tables": [
|
||||
"ir_ui_view_tree_state"
|
||||
],
|
||||
"line": 512,
|
||||
"args": [
|
||||
"['model', 'domain', 'user', 'child_name']",
|
||||
@@ -863,7 +1114,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
|
||||
"module": "ir",
|
||||
"file": "ui/view.py",
|
||||
"class": "ViewSearch",
|
||||
"method": "__register__",
|
||||
"line": 580,
|
||||
@@ -871,6 +1123,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 585,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+130
-20
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,31 +27,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 96,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -60,7 +73,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 295,
|
||||
@@ -68,19 +82,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 310,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 312,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -88,25 +109,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 315,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 316,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -119,19 +144,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 320,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 322,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -139,25 +171,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 325,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 326,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -170,7 +206,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -178,6 +215,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -189,7 +229,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 102,
|
||||
@@ -197,6 +259,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -209,27 +274,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 356,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 360,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 369,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 371,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -243,18 +330,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 372,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 373,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -267,7 +358,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 636,
|
||||
@@ -275,18 +367,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 649,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 649,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -296,13 +394,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 666,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -315,6 +416,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 667,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
@@ -327,17 +431,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 670,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 670,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -346,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"
|
||||
}
|
||||
]
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 55,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 424,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 435,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 435,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 639,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 669,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 676,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 677,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 692,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 692,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 694,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 741,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 748,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 755,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 755,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 758,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 765,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 765,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 768,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
@@ -22,7 +26,31 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 250,
|
||||
@@ -30,6 +58,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 256,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -43,17 +74,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 262,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 262,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -62,23 +99,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 269,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 269,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -87,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 218,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 219,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 222,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+79
-7
@@ -3,7 +3,54 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 22,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -11,31 +58,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +102,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 90,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +153,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+56
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 189,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 190,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 193,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 196,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 196,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,28 +92,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 444,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 444,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 448,
|
||||
"args": [
|
||||
"'type'"
|
||||
@@ -110,6 +136,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -123,14 +152,34 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 516,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 518,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 520,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,23 +12,29 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 77,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 77,
|
||||
"args": [],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
|
||||
+273
-45
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 579,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -22,17 +26,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 582,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 582,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -41,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,
|
||||
@@ -55,6 +66,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 778,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -66,6 +80,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 781,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -77,6 +94,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 784,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -89,17 +109,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 785,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 785,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -108,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,
|
||||
@@ -122,6 +149,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 972,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -134,7 +164,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1005,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 1011,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -162,18 +197,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -182,25 +223,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -209,13 +256,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -228,6 +278,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -240,6 +293,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -251,7 +307,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -259,6 +316,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 103,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 886,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_model_button"
|
||||
],
|
||||
"line": 892,
|
||||
"args": [
|
||||
"'name_model_uniq'"
|
||||
@@ -290,7 +354,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1208,
|
||||
@@ -298,17 +363,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1217,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1217,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -317,12 +388,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1223,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -336,25 +410,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 96,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 106,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 111,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -363,23 +461,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -388,23 +492,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 127,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -413,31 +523,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 359,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 386,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 395,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 396,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -445,12 +605,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 407,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -463,7 +626,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -471,6 +635,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -484,7 +651,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -492,31 +660,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -524,13 +703,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -543,7 +725,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -551,6 +734,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 118,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -563,6 +749,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -575,17 +764,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 124,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 124,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -594,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,
|
||||
@@ -608,18 +804,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 86,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -628,13 +830,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -647,6 +852,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 103,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -654,50 +862,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 109,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 110,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -710,7 +930,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -718,6 +939,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 37,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -730,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,
|
||||
@@ -738,6 +963,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 606,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+130
-20
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,31 +27,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -60,7 +73,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 312,
|
||||
@@ -68,19 +82,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 327,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 329,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -88,25 +109,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 332,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 333,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -119,19 +144,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 337,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 339,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -139,25 +171,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 342,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 343,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -170,7 +206,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -178,6 +215,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -189,7 +229,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -197,6 +259,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 116,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -209,27 +274,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 345,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 349,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 358,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 360,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -243,18 +330,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 361,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 362,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -267,7 +358,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 625,
|
||||
@@ -275,18 +367,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -296,13 +394,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 655,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -315,6 +416,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 656,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
@@ -327,17 +431,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -346,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"
|
||||
}
|
||||
]
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 55,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 444,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 455,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 455,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 678,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 708,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 715,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 716,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 730,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 730,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 732,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 779,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 786,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 793,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 793,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 796,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 803,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 803,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 806,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
@@ -22,7 +26,31 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 266,
|
||||
@@ -30,6 +58,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 272,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -43,17 +74,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 278,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 278,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -62,23 +99,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 285,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -87,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 218,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 219,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 222,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+79
-7
@@ -3,7 +3,54 @@
|
||||
"module": "company",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "ConfigurationLang",
|
||||
"method": "__register__",
|
||||
"line": 21,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_configuration_party_lang"
|
||||
],
|
||||
"line": 22,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 50,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 51,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "company",
|
||||
"file": "res.py",
|
||||
"class": "User",
|
||||
"method": "__register__",
|
||||
"line": 69,
|
||||
@@ -11,31 +58,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +102,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 90,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +153,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+56
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 189,
|
||||
"args": [
|
||||
"'name_uniq'"
|
||||
@@ -22,6 +26,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 190,
|
||||
"args": [
|
||||
"'code_uniq'"
|
||||
@@ -33,6 +40,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 193,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -45,29 +55,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 196,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 196,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -75,28 +92,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 444,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 444,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 448,
|
||||
"args": [
|
||||
"'type'"
|
||||
@@ -110,6 +136,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 451,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -123,14 +152,34 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 516,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 518,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 520,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+13
-3
@@ -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,
|
||||
@@ -11,28 +12,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 89,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"currency_currency"
|
||||
],
|
||||
"line": 93,
|
||||
"args": [
|
||||
"'symbol'",
|
||||
|
||||
+273
-45
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 591,
|
||||
"args": [
|
||||
"'report_name_module_uniq'"
|
||||
@@ -22,17 +26,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 594,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "action_report",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_report"
|
||||
],
|
||||
"line": 594,
|
||||
"args": [
|
||||
"[action_report.extension]",
|
||||
@@ -41,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,
|
||||
@@ -55,6 +66,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 782,
|
||||
"args": [
|
||||
"'auto_refresh'"
|
||||
@@ -66,6 +80,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 785,
|
||||
"args": [
|
||||
"'window_name'"
|
||||
@@ -77,6 +94,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 788,
|
||||
"args": [
|
||||
"'limit'",
|
||||
@@ -89,17 +109,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 789,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "act_window",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_action_act_window"
|
||||
],
|
||||
"line": 789,
|
||||
"args": [
|
||||
"[act_window.limit]",
|
||||
@@ -108,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,
|
||||
@@ -122,6 +149,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 985,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -134,7 +164,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1028,
|
||||
@@ -142,6 +173,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 1034,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -154,7 +188,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
|
||||
"module": "ir",
|
||||
"file": "attachment.py",
|
||||
"class": "Attachment",
|
||||
"method": "__register__",
|
||||
"line": 59,
|
||||
@@ -162,18 +197,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 69,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -182,25 +223,31 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "attachment",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 74,
|
||||
"args": [
|
||||
"[attachment.file_id]",
|
||||
@@ -209,13 +256,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 80,
|
||||
"args": [
|
||||
"'digest'"
|
||||
@@ -228,6 +278,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"'collision'"
|
||||
@@ -240,6 +293,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_attachment"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'resource_name'"
|
||||
@@ -251,7 +307,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -259,6 +316,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 103,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -271,7 +331,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 895,
|
||||
@@ -279,6 +340,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_model_button"
|
||||
],
|
||||
"line": 901,
|
||||
"args": [
|
||||
"'name_model_uniq'"
|
||||
@@ -290,7 +354,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1227,
|
||||
@@ -298,17 +363,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1236,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1236,
|
||||
"args": [
|
||||
"[model_data.module]",
|
||||
@@ -317,12 +388,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1242,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -336,25 +410,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "Module",
|
||||
"method": "__register__",
|
||||
"line": 97,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module",
|
||||
"ir_module"
|
||||
],
|
||||
"line": 107,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 112,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 112,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -363,23 +461,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 115,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_module"
|
||||
],
|
||||
"line": 115,
|
||||
"args": [
|
||||
"[sql_table.state]",
|
||||
@@ -388,23 +492,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 128,
|
||||
"args": [
|
||||
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "model_data_sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 128,
|
||||
"args": [
|
||||
"[model_data_sql_table.module]",
|
||||
@@ -413,31 +523,81 @@
|
||||
"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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_dependency",
|
||||
"ir_module_dependency"
|
||||
],
|
||||
"line": 341,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 370,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"ir_module_module_config_wizard_item",
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 379,
|
||||
"args": [
|
||||
"old_table",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
|
||||
"phase": "before_super",
|
||||
"condition": "backend.TableHandler.table_exist(old_table)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 380,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 380,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
@@ -445,12 +605,15 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 391,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -463,7 +626,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -471,6 +635,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -484,7 +651,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 117,
|
||||
@@ -492,31 +660,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -524,13 +703,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -543,7 +725,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 111,
|
||||
@@ -551,6 +734,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 119,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -563,6 +749,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 120,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -575,17 +764,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 125,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "ir_translation",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 125,
|
||||
"args": [
|
||||
"[ir_translation.type]",
|
||||
@@ -594,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,
|
||||
@@ -608,18 +804,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"sql_table.id",
|
||||
@@ -628,13 +830,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"'minimum_delay'"
|
||||
@@ -647,6 +852,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 108,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -654,50 +862,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 110,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 110,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 114,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 115,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -710,7 +930,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -718,6 +939,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 37,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -730,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,
|
||||
@@ -738,6 +963,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 606,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+130
-20
@@ -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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 91,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,31 +27,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 102,
|
||||
"args": [
|
||||
"[sql_table.street]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 105,
|
||||
"args": [
|
||||
"'streetbis'"
|
||||
@@ -60,7 +73,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 312,
|
||||
@@ -68,19 +82,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 327,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 329,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -88,25 +109,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 332,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 333,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -119,19 +144,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 337,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 339,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -139,25 +171,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 342,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 343,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -170,7 +206,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
|
||||
"module": "party",
|
||||
"file": "category.py",
|
||||
"class": "Category",
|
||||
"method": "__register__",
|
||||
"line": 35,
|
||||
@@ -178,6 +215,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"party_category"
|
||||
],
|
||||
"line": 41,
|
||||
"args": [
|
||||
"'name_parent_uniq'"
|
||||
@@ -189,7 +229,29 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "_ConfigurationValue",
|
||||
"method": "__register__",
|
||||
"line": 99,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 100,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Party",
|
||||
"method": "__register__",
|
||||
"line": 110,
|
||||
@@ -197,6 +259,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 116,
|
||||
"args": [
|
||||
"'name'",
|
||||
@@ -209,27 +274,49 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "PartyLang",
|
||||
"method": "__register__",
|
||||
"line": 345,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"party_party_lang"
|
||||
],
|
||||
"line": 349,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"party_party_lang",
|
||||
"party_party"
|
||||
],
|
||||
"line": 358,
|
||||
"args": [
|
||||
"[table.party, table.lang]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 360,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -243,18 +330,22 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 361,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 362,
|
||||
"args": [
|
||||
"'lang'"
|
||||
@@ -267,7 +358,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
|
||||
"module": "party",
|
||||
"file": "party.py",
|
||||
"class": "Identifier",
|
||||
"method": "__register__",
|
||||
"line": 625,
|
||||
@@ -275,18 +367,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "party",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 638,
|
||||
"args": [
|
||||
"party.id",
|
||||
@@ -296,13 +394,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 655,
|
||||
"args": [
|
||||
"'vat_number'"
|
||||
@@ -315,6 +416,9 @@
|
||||
{
|
||||
"object": "party_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_party"
|
||||
],
|
||||
"line": 656,
|
||||
"args": [
|
||||
"'vat_country'"
|
||||
@@ -327,17 +431,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 659,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -346,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"
|
||||
}
|
||||
]
|
||||
|
||||
+138
-13
@@ -3,7 +3,31 @@
|
||||
"module": "product",
|
||||
"files": [
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
|
||||
"module": "product",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationDefaultCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 54,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_configuration_default_cost_price_method"
|
||||
],
|
||||
"line": 55,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "Product",
|
||||
"method": "__register__",
|
||||
"line": 447,
|
||||
@@ -11,84 +35,169 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 458,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 458,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_list_price"
|
||||
],
|
||||
"line": 702,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "product",
|
||||
"file": "product.py",
|
||||
"class": "ProductCostPriceMethod",
|
||||
"method": "__register__",
|
||||
"line": 732,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price_method"
|
||||
],
|
||||
"line": 739,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [],
|
||||
"line": 740,
|
||||
"args": [
|
||||
"ProductCostPrice._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 754,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price_method",
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 754,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns]",
|
||||
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cost_price",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 756,
|
||||
"args": [
|
||||
"*[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,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 803,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "add_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 810,
|
||||
"args": [
|
||||
"'template'",
|
||||
@@ -102,31 +211,38 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 817,
|
||||
"args": [
|
||||
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 817,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
||||
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
},
|
||||
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 820,
|
||||
"args": [
|
||||
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
||||
@@ -134,37 +250,46 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 827,
|
||||
"args": [
|
||||
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 827,
|
||||
"args": [],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"product_cost_price"
|
||||
],
|
||||
"line": 830,
|
||||
"args": [
|
||||
"'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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
@@ -22,7 +26,31 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "configuration.py",
|
||||
"class": "ConfigurationProductionSequence",
|
||||
"method": "__register__",
|
||||
"line": 44,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
"tables": [
|
||||
"production_configuration_production_sequence"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 263,
|
||||
@@ -30,6 +58,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 269,
|
||||
"args": [
|
||||
"'code'",
|
||||
@@ -43,17 +74,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 275,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 275,
|
||||
"args": [
|
||||
"[table.planned_start_date]",
|
||||
@@ -62,23 +99,29 @@
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 282,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 282,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -87,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"
|
||||
}
|
||||
]
|
||||
|
||||
+27
-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,
|
||||
@@ -11,31 +12,40 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sqltable",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [],
|
||||
"kwargs": {
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 218,
|
||||
"args": [
|
||||
"'password'"
|
||||
@@ -48,6 +58,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 219,
|
||||
"args": [
|
||||
"'salt'"
|
||||
@@ -60,6 +73,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 222,
|
||||
"args": [
|
||||
"'name'"
|
||||
@@ -73,17 +89,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 225,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -92,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
+33
-7
@@ -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,
|
||||
@@ -11,31 +12,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 130,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 132,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -44,38 +56,49 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
||||
],
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "user_company",
|
||||
"operation": "insert",
|
||||
"tables": [
|
||||
"res_user-company_company",
|
||||
"res_user"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"[user_company.user, user_company.company]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 137,
|
||||
"args": [
|
||||
"table.id",
|
||||
@@ -84,13 +107,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"res_user"
|
||||
],
|
||||
"line": 141,
|
||||
"args": [
|
||||
"'main_company'"
|
||||
|
||||
+47
-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,
|
||||
@@ -11,29 +12,36 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 187,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 187,
|
||||
"args": [],
|
||||
"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,
|
||||
@@ -41,28 +49,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 435,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 435,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 439,
|
||||
"args": [
|
||||
"'type'"
|
||||
@@ -76,6 +93,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"country_subdivision"
|
||||
],
|
||||
"line": 442,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -89,14 +109,34 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
|
||||
"module": "country",
|
||||
"file": "country.py",
|
||||
"class": "PostalCode",
|
||||
"method": "__register__",
|
||||
"line": 507,
|
||||
"operations": [
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
"tables": [
|
||||
"country_zip",
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 509,
|
||||
"args": [
|
||||
"'country_zip'",
|
||||
"cls._table"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"country_postal_code"
|
||||
],
|
||||
"line": 511,
|
||||
"args": [
|
||||
"'zip'",
|
||||
|
||||
+13
-3
@@ -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,
|
||||
@@ -11,28 +12,37 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "data",
|
||||
"operation": "delete",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 83,
|
||||
"args": [],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"currency_currency"
|
||||
],
|
||||
"line": 87,
|
||||
"args": [
|
||||
"'symbol'",
|
||||
|
||||
+102
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_view"
|
||||
],
|
||||
"line": 958,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
|
||||
"module": "ir",
|
||||
"file": "action.py",
|
||||
"class": "ActionActWindowDomain",
|
||||
"method": "__register__",
|
||||
"line": 1001,
|
||||
@@ -31,6 +36,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_action_act_window_domain"
|
||||
],
|
||||
"line": 1007,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -43,7 +51,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
|
||||
"module": "ir",
|
||||
"file": "cron.py",
|
||||
"class": "Cron",
|
||||
"method": "__register__",
|
||||
"line": 92,
|
||||
@@ -51,6 +60,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_cron"
|
||||
],
|
||||
"line": 103,
|
||||
"args": [
|
||||
"'next_call'",
|
||||
@@ -63,7 +75,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
|
||||
"module": "ir",
|
||||
"file": "export.py",
|
||||
"class": "Export",
|
||||
"method": "__register__",
|
||||
"line": 56,
|
||||
@@ -71,18 +84,24 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_export"
|
||||
],
|
||||
"line": 67,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_export"
|
||||
],
|
||||
"line": 67,
|
||||
"args": [
|
||||
"[table.user]",
|
||||
@@ -96,7 +115,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelButton",
|
||||
"method": "__register__",
|
||||
"line": 887,
|
||||
@@ -104,6 +124,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_model_button"
|
||||
],
|
||||
"line": 893,
|
||||
"args": [
|
||||
"'name_model_uniq'"
|
||||
@@ -115,7 +138,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
|
||||
"module": "ir",
|
||||
"file": "model.py",
|
||||
"class": "ModelData",
|
||||
"method": "__register__",
|
||||
"line": 1219,
|
||||
@@ -123,6 +147,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 1225,
|
||||
"args": [
|
||||
"'db_id'"
|
||||
@@ -136,7 +163,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
|
||||
"module": "ir",
|
||||
"file": "module.py",
|
||||
"class": "ModuleConfigWizardItem",
|
||||
"method": "__register__",
|
||||
"line": 323,
|
||||
@@ -144,6 +172,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_module_config_wizard_item"
|
||||
],
|
||||
"line": 329,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -156,7 +187,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "SequenceType",
|
||||
"method": "__register__",
|
||||
"line": 41,
|
||||
@@ -164,6 +196,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -177,7 +212,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
|
||||
"module": "ir",
|
||||
"file": "sequence.py",
|
||||
"class": "Sequence",
|
||||
"method": "__register__",
|
||||
"line": 122,
|
||||
@@ -185,31 +221,42 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_sequence",
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 135,
|
||||
"args": [
|
||||
"[table.sequence_type]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "sequence_type",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_sequence_type"
|
||||
],
|
||||
"line": 137,
|
||||
"args": [
|
||||
"sequence_type.id"
|
||||
@@ -217,13 +264,16 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_sequence"
|
||||
],
|
||||
"line": 140,
|
||||
"args": [
|
||||
"'code'"
|
||||
@@ -236,7 +286,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
|
||||
"module": "ir",
|
||||
"file": "translation.py",
|
||||
"class": "Translation",
|
||||
"method": "__register__",
|
||||
"line": 115,
|
||||
@@ -244,6 +295,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 120,
|
||||
"args": [
|
||||
"'translation_md5_uniq'"
|
||||
@@ -256,6 +310,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_translation"
|
||||
],
|
||||
"line": 121,
|
||||
"args": [
|
||||
"'src_md5'"
|
||||
@@ -268,7 +325,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
|
||||
"module": "ir",
|
||||
"file": "trigger.py",
|
||||
"class": "Trigger",
|
||||
"method": "__register__",
|
||||
"line": 79,
|
||||
@@ -276,6 +334,9 @@
|
||||
{
|
||||
"object": "model",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_model"
|
||||
],
|
||||
"line": 92,
|
||||
"args": [
|
||||
"model.model"
|
||||
@@ -283,50 +344,62 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "sql_table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 94,
|
||||
"args": [
|
||||
"[sql_table.action]",
|
||||
"[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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 98,
|
||||
"args": [
|
||||
"'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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"ir_trigger"
|
||||
],
|
||||
"line": 99,
|
||||
"args": [
|
||||
"'action_function'"
|
||||
@@ -339,7 +412,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
|
||||
"module": "ir",
|
||||
"file": "ui/icon.py",
|
||||
"class": "Icon",
|
||||
"method": "__register__",
|
||||
"line": 31,
|
||||
@@ -347,6 +421,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_icon"
|
||||
],
|
||||
"line": 37,
|
||||
"args": [
|
||||
"'sequence'",
|
||||
@@ -359,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,
|
||||
@@ -367,6 +445,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"ir_ui_view_search"
|
||||
],
|
||||
"line": 621,
|
||||
"args": [
|
||||
"'user'",
|
||||
|
||||
+55
-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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"party_address"
|
||||
],
|
||||
"line": 88,
|
||||
"args": [
|
||||
"'zip'",
|
||||
@@ -23,7 +27,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
|
||||
"module": "party",
|
||||
"file": "address.py",
|
||||
"class": "AddressFormat",
|
||||
"method": "__register__",
|
||||
"line": 303,
|
||||
@@ -31,19 +36,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"country_country"
|
||||
],
|
||||
"line": 318,
|
||||
"args": [
|
||||
"[table.country_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "country",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"country_country"
|
||||
],
|
||||
"line": 320,
|
||||
"args": [
|
||||
"country.code"
|
||||
@@ -51,25 +63,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 323,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 324,
|
||||
"args": [
|
||||
"'country'"
|
||||
@@ -82,19 +98,26 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_address_format",
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 328,
|
||||
"args": [
|
||||
"[table.language_code]",
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "language",
|
||||
"operation": "select",
|
||||
"tables": [
|
||||
"ir_lang"
|
||||
],
|
||||
"line": 330,
|
||||
"args": [
|
||||
"Substring(language.code, 0, 2)"
|
||||
@@ -102,25 +125,29 @@
|
||||
"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')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 333,
|
||||
"args": [
|
||||
"*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')"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_column",
|
||||
"tables": [
|
||||
"party_address_format"
|
||||
],
|
||||
"line": 334,
|
||||
"args": [
|
||||
"'language'"
|
||||
@@ -133,7 +160,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
|
||||
"module": "party",
|
||||
"file": "configuration.py",
|
||||
"class": "Configuration",
|
||||
"method": "__register__",
|
||||
"line": 34,
|
||||
@@ -141,32 +169,39 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_configuration"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_configuration"
|
||||
],
|
||||
"line": 45,
|
||||
"args": [
|
||||
"[table.identifier_types]",
|
||||
"[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,
|
||||
@@ -174,17 +209,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 787,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"party_identifier"
|
||||
],
|
||||
"line": 787,
|
||||
"args": [
|
||||
"[table.type]",
|
||||
@@ -193,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"
|
||||
}
|
||||
]
|
||||
|
||||
+10
-3
@@ -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,
|
||||
@@ -11,25 +12,31 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 505,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"product_product"
|
||||
],
|
||||
"line": 505,
|
||||
"args": [
|
||||
"[table.suffix_code]",
|
||||
"[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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 78,
|
||||
"args": [
|
||||
"'uom'",
|
||||
@@ -24,6 +28,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_constraint",
|
||||
"tables": [
|
||||
"production_bom_input"
|
||||
],
|
||||
"line": 84,
|
||||
"args": [
|
||||
"'product_bom_uniq'"
|
||||
@@ -35,7 +42,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
|
||||
"module": "production",
|
||||
"file": "production.py",
|
||||
"class": "Production",
|
||||
"method": "__register__",
|
||||
"line": 264,
|
||||
@@ -43,6 +51,9 @@
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_rename",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 270,
|
||||
"args": [
|
||||
"'uom'",
|
||||
@@ -56,17 +67,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 278,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"production"
|
||||
],
|
||||
"line": 278,
|
||||
"args": [
|
||||
"[table.state]",
|
||||
@@ -75,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"
|
||||
}
|
||||
]
|
||||
|
||||
+10
-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,
|
||||
@@ -11,17 +12,23 @@
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [
|
||||
"*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"
|
||||
},
|
||||
{
|
||||
"object": "model_data",
|
||||
"operation": "update",
|
||||
"tables": [
|
||||
"ir_model_data"
|
||||
],
|
||||
"line": 215,
|
||||
"args": [
|
||||
"[model_data.noupdate]",
|
||||
@@ -30,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,
|
||||
@@ -11,18 +12,20 @@
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
"tables": [],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"*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)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "select",
|
||||
"tables": [],
|
||||
"line": 85,
|
||||
"args": [
|
||||
"template_lot_type.template"
|
||||
@@ -30,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,
|
||||
@@ -11,6 +12,9 @@
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "not_null_action",
|
||||
"tables": [
|
||||
"stock_product_location"
|
||||
],
|
||||
"line": 47,
|
||||
"args": [
|
||||
"'product'",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user