Files
tryton-db-migration/data/7.4/ir.json
T

815 lines
25 KiB
JSON
Raw Normal View History

2026-08-08 01:29:43 +02:00
{
"version": "7.4",
"module": "ir",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionActWindowView",
"method": "__register__",
"line": 957,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 963,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionActWindowDomain",
"method": "__register__",
"line": 1006,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 1012,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/cron.py",
"class": "Cron",
"method": "__register__",
"line": 119,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 130,
"args": [
"'next_call'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('next_call', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
"class": "Export",
"method": "__register__",
"line": 56,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 67,
"args": [
"*table.update([table.user], [table.create_uid])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))",
"phase": "after_super",
"condition": "not user_exists"
},
{
"object": "table",
"operation": "update",
"line": 67,
"args": [
"[table.user]",
"[table.create_uid]"
],
"kwargs": {},
"code": "table.update([table.user], [table.create_uid])",
"phase": "after_super",
"condition": "not user_exists"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelField",
"method": "__register__",
"line": 297,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 309,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 310,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"line": 311,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"line": 311,
"args": [
"[table.model]",
"[model.model]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 315,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelAccess",
"method": "__register__",
"line": 534,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 546,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 547,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"line": 548,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"line": 548,
"args": [
"[table.model]",
"[model.model]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 552,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelFieldAccess",
"method": "__register__",
"line": 789,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 801,
"args": [
"'field'",
"'_temp_field'"
],
"kwargs": {},
"code": "table_h.column_rename('field', '_temp_field')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 802,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 803,
"args": [
"'field'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('field', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"line": 804,
"args": [
"*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id))",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"line": 804,
"args": [
"[table.model, table.field]",
"[field.model, field.name]"
],
"kwargs": {
"from_": "[field]",
"where": "table._temp_field == field.id"
},
"code": "table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 809,
"args": [
"'_temp_field'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_field')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelButton",
"method": "__register__",
"line": 988,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 1000,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 1001,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"line": 1002,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"line": 1002,
"args": [
"[table.model]",
"[model.model]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 1006,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_constraint",
"line": 1011,
"args": [
"'name_model_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('name_model_uniq')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelData",
"method": "__register__",
"line": 1344,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 1350,
"args": [
"'db_id'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('db_id', action='remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleConfigWizardItem",
"method": "__register__",
"line": 323,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 329,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/rule.py",
"class": "RuleGroup",
"method": "__register__",
"line": 84,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 96,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"line": 97,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"line": 98,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"line": 98,
"args": [
"[table.model]",
"[model.model]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 102,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
"class": "SequenceType",
"method": "__register__",
"line": 41,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 47,
"args": [
"'code'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('code', action='remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
"class": "Sequence",
"method": "__register__",
"line": 122,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "table",
"operation": "update",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "sequence_type",
"operation": "select",
"line": 137,
"args": [
"sequence_type.id"
],
"kwargs": {
"where": "sequence_type.code == table.code"
},
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 140,
"args": [
"'code'"
],
"kwargs": {},
"code": "table_h.drop_column('code')",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
"class": "Translation",
"method": "__register__",
"line": 122,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 127,
"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",
"line": 128,
"args": [
"'src_md5'"
],
"kwargs": {},
"code": "table.drop_column('src_md5')",
"phase": "before_super",
"condition": "table.column_exist('src_md5')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
"class": "Trigger",
"method": "__register__",
"line": 79,
"operations": [
{
"object": "model",
"operation": "select",
"line": 92,
"args": [
"model.model"
],
"kwargs": {
"where": "model.id == sql_table.action_model"
},
"code": "model.select(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",
"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))]))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "sql_table",
"operation": "update",
"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))])",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 98,
"args": [
"'action_model'"
],
"kwargs": {},
"code": "table_h.drop_column('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",
"line": 99,
"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')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
"class": "Icon",
"method": "__register__",
"line": 35,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 41,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
"class": "ViewTreeOptional",
"method": "__register__",
"line": 570,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 579,
"args": [
"'view_id'",
"'view'"
],
"kwargs": {},
"code": "table_h.column_rename('view_id', 'view')",
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
"line": 584,
"args": [
"*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"line": 584,
"args": [
"[table.model]",
"[view.select(view.model, where=view.id == table.view)]"
],
"kwargs": {
"where": "table.model == Null"
},
"code": "table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)",
"phase": "after_super"
},
{
"object": "view",
"operation": "select",
"line": 586,
"args": [
"view.model"
],
"kwargs": {
"where": "view.id == table.view"
},
"code": "view.select(view.model, where=view.id == table.view)",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
"class": "ViewSearch",
"method": "__register__",
"line": 757,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 762,
"args": [
"'user'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('user', 'remove')",
"phase": "after_super"
}
]
}
]
}