Public Access
981 lines
31 KiB
JSON
981 lines
31 KiB
JSON
{
|
|
"version": "6.8",
|
|
"module": "ir",
|
|
"files": [
|
|
{
|
|
"module": "ir",
|
|
"file": "action.py",
|
|
"class": "ActionReport",
|
|
"method": "__register__",
|
|
"line": 582,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_constraint",
|
|
"tables": [
|
|
"ir_action_report"
|
|
],
|
|
"line": 591,
|
|
"args": [
|
|
"'report_name_module_uniq'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_constraint('report_name_module_uniq')",
|
|
"phase": "after_super"
|
|
},
|
|
{
|
|
"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": "(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]",
|
|
"['txt']"
|
|
],
|
|
"kwargs": {
|
|
"where": "action_report.extension == 'plain'"
|
|
},
|
|
"code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "action.py",
|
|
"class": "ActionActWindow",
|
|
"method": "__register__",
|
|
"line": 774,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"ir_action_act_window"
|
|
],
|
|
"line": 782,
|
|
"args": [
|
|
"'auto_refresh'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('auto_refresh')",
|
|
"phase": "after_super"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"ir_action_act_window"
|
|
],
|
|
"line": 785,
|
|
"args": [
|
|
"'window_name'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('window_name')",
|
|
"phase": "after_super"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_action_act_window"
|
|
],
|
|
"line": 788,
|
|
"args": [
|
|
"'limit'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.not_null_action('limit', 'remove')",
|
|
"phase": "after_super"
|
|
},
|
|
{
|
|
"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": "(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]",
|
|
"[Null]"
|
|
],
|
|
"kwargs": {
|
|
"where": "act_window.limit == 0"
|
|
},
|
|
"code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "action.py",
|
|
"class": "ActionActWindowView",
|
|
"method": "__register__",
|
|
"line": 979,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_action_act_window_view"
|
|
],
|
|
"line": 985,
|
|
"args": [
|
|
"'sequence'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.not_null_action('sequence', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "action.py",
|
|
"class": "ActionActWindowDomain",
|
|
"method": "__register__",
|
|
"line": 1028,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_action_act_window_domain"
|
|
],
|
|
"line": 1034,
|
|
"args": [
|
|
"'sequence'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.not_null_action('sequence', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "attachment.py",
|
|
"class": "Attachment",
|
|
"method": "__register__",
|
|
"line": 59,
|
|
"operations": [
|
|
{
|
|
"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": "(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]",
|
|
"[attachment.digest]"
|
|
],
|
|
"kwargs": {
|
|
"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": "(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]",
|
|
"[Concat(Concat(attachment.digest, '-'), attachment.collision)]"
|
|
],
|
|
"kwargs": {
|
|
"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'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('digest')",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"ir_attachment"
|
|
],
|
|
"line": 81,
|
|
"args": [
|
|
"'collision'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('collision')",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('digest') and table.column_exist('collision')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_constraint",
|
|
"tables": [
|
|
"ir_attachment"
|
|
],
|
|
"line": 84,
|
|
"args": [
|
|
"'resource_name'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_constraint('resource_name')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "cron.py",
|
|
"class": "Cron",
|
|
"method": "__register__",
|
|
"line": 92,
|
|
"operations": [
|
|
{
|
|
"object": "table_h",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_cron"
|
|
],
|
|
"line": 103,
|
|
"args": [
|
|
"'next_call'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.not_null_action('next_call', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "model.py",
|
|
"class": "ModelButton",
|
|
"method": "__register__",
|
|
"line": 895,
|
|
"operations": [
|
|
{
|
|
"object": "table_h",
|
|
"operation": "drop_constraint",
|
|
"tables": [
|
|
"ir_model_button"
|
|
],
|
|
"line": 901,
|
|
"args": [
|
|
"'name_model_uniq'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.drop_constraint('name_model_uniq')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "model.py",
|
|
"class": "ModelData",
|
|
"method": "__register__",
|
|
"line": 1227,
|
|
"operations": [
|
|
{
|
|
"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": "(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]",
|
|
"['ir']"
|
|
],
|
|
"kwargs": {
|
|
"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'"
|
|
],
|
|
"kwargs": {
|
|
"action": "'remove'"
|
|
},
|
|
"code": "table_h.not_null_action('db_id', action='remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": "(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]",
|
|
"['activated']"
|
|
],
|
|
"kwargs": {
|
|
"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": "(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]",
|
|
"['not activated']"
|
|
],
|
|
"kwargs": {
|
|
"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": "(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]",
|
|
"['ir']"
|
|
],
|
|
"kwargs": {
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": "(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": {
|
|
"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'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.not_null_action('sequence', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "sequence.py",
|
|
"class": "SequenceType",
|
|
"method": "__register__",
|
|
"line": 41,
|
|
"operations": [
|
|
{
|
|
"object": "table_h",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_sequence_type"
|
|
],
|
|
"line": 47,
|
|
"args": [
|
|
"'code'"
|
|
],
|
|
"kwargs": {
|
|
"action": "'remove'"
|
|
},
|
|
"code": "table_h.not_null_action('code', action='remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "sequence.py",
|
|
"class": "Sequence",
|
|
"method": "__register__",
|
|
"line": 117,
|
|
"operations": [
|
|
{
|
|
"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": "(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(\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"
|
|
],
|
|
"kwargs": {
|
|
"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'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.drop_column('code')",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('code')"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "translation.py",
|
|
"class": "Translation",
|
|
"method": "__register__",
|
|
"line": 111,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_constraint",
|
|
"tables": [
|
|
"ir_translation"
|
|
],
|
|
"line": 119,
|
|
"args": [
|
|
"'translation_md5_uniq'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_constraint('translation_md5_uniq')",
|
|
"phase": "before_super",
|
|
"condition": "table.column_exist('src_md5')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"ir_translation"
|
|
],
|
|
"line": 120,
|
|
"args": [
|
|
"'src_md5'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('src_md5')",
|
|
"phase": "before_super",
|
|
"condition": "table.column_exist('src_md5')"
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"ir_translation"
|
|
],
|
|
"line": 125,
|
|
"args": [
|
|
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
|
|
],
|
|
"kwargs": {},
|
|
"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]",
|
|
"['report']"
|
|
],
|
|
"kwargs": {
|
|
"where": "ir_translation.type == 'odt'"
|
|
},
|
|
"code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "trigger.py",
|
|
"class": "Trigger",
|
|
"method": "__register__",
|
|
"line": 79,
|
|
"operations": [
|
|
{
|
|
"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": "(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",
|
|
"sql_table.minimum_delay"
|
|
],
|
|
"kwargs": {
|
|
"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'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('minimum_delay')",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('minimum_delay')"
|
|
},
|
|
{
|
|
"object": "model",
|
|
"operation": "select",
|
|
"tables": [
|
|
"ir_model"
|
|
],
|
|
"line": 108,
|
|
"args": [
|
|
"model.model"
|
|
],
|
|
"kwargs": {
|
|
"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": "(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(\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('(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'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.drop_column('action_function')",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "ui/icon.py",
|
|
"class": "Icon",
|
|
"method": "__register__",
|
|
"line": 31,
|
|
"operations": [
|
|
{
|
|
"object": "table",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_ui_icon"
|
|
],
|
|
"line": 37,
|
|
"args": [
|
|
"'sequence'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.not_null_action('sequence', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "ir",
|
|
"file": "ui/view.py",
|
|
"class": "ViewSearch",
|
|
"method": "__register__",
|
|
"line": 601,
|
|
"operations": [
|
|
{
|
|
"object": "table_h",
|
|
"operation": "not_null_action",
|
|
"tables": [
|
|
"ir_ui_view_search"
|
|
],
|
|
"line": 606,
|
|
"args": [
|
|
"'user'",
|
|
"'remove'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.not_null_action('user', 'remove')",
|
|
"phase": "after_super"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |