Files
tryton-db-migration/data/7.0/ir.json
T
uha4 24caf23986 extract gets and saves most tables worked on
some cases still need some work...
2026-08-08 22:32:31 +02:00

450 lines
12 KiB
JSON

{
"version": "7.0",
"module": "ir",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionActWindowView",
"method": "__register__",
"line": 952,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 958,
"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": 1001,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1007,
"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": 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"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
"class": "Export",
"method": "__register__",
"line": 56,
"operations": [
{
"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]))",
"phase": "after_super",
"condition": "not user_exists"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_export"
],
"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": "ModelButton",
"method": "__register__",
"line": 887,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 893,
"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": 1219,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1225,
"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",
"tables": [
"ir_module_config_wizard_item"
],
"line": 329,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/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"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py",
"class": "Sequence",
"method": "__register__",
"line": 122,
"operations": [
{
"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)))",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "sequence_type",
"operation": "select",
"tables": [
"ir_sequence_type"
],
"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",
"tables": [
"ir_sequence"
],
"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": 115,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 120,
"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": 121,
"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",
"tables": [
"ir_model"
],
"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",
"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))]))",
"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))])",
"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')",
"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'"
],
"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": 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"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
"class": "ViewSearch",
"method": "__register__",
"line": 616,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 621,
"args": [
"'user'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('user', 'remove')",
"phase": "after_super"
}
]
}
]
}