several small fixes:

- systemmodule ir und res aufgenommen
- Version auf Major.Minor reduziert
- reihenfolge der Module fixiert
This commit is contained in:
2026-08-08 01:29:43 +02:00
parent 4fff05a09e
commit 64fda357ad
291 changed files with 18425 additions and 1456 deletions
+106
View File
@@ -0,0 +1,106 @@
{
"version": "6.6",
"module": "company",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
"class": "User",
"method": "__register__",
"line": 69,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "user_company",
"operation": "insert",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "table",
"operation": "select",
"line": 85,
"args": [
"table.id",
"table.main_company"
],
"kwargs": {
"where": "table.main_company != Null"
},
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "cursor",
"operation": "execute",
"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))))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "user_company",
"operation": "insert",
"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)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "table",
"operation": "select",
"line": 90,
"args": [
"table.id",
"table.company"
],
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 94,
"args": [
"'main_company'"
],
"kwargs": {},
"code": "table_h.drop_column('main_company')",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
}
]
}
]
}
+146
View File
@@ -0,0 +1,146 @@
{
"version": "6.6",
"module": "country",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
"class": "Country",
"method": "__register__",
"line": 178,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 189,
"args": [
"'name_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('name_uniq')",
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_constraint",
"line": 190,
"args": [
"'code_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('code_uniq')",
"phase": "after_super"
},
{
"object": "table",
"operation": "not_null_action",
"line": 193,
"args": [
"'code'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('code', 'remove')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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__)))",
"phase": "after_super"
},
{
"object": "data",
"operation": "delete",
"line": 196,
"args": [],
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
"class": "Subdivision",
"method": "__register__",
"line": 433,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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__)))",
"phase": "after_super"
},
{
"object": "data",
"operation": "delete",
"line": 444,
"args": [],
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"phase": "after_super"
},
{
"object": "table_h",
"operation": "not_null_action",
"line": 448,
"args": [
"'type'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('type', action='remove')",
"phase": "after_super"
},
{
"object": "table_h",
"operation": "not_null_action",
"line": 451,
"args": [
"'code'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('code', action='remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
"class": "PostalCode",
"method": "__register__",
"line": 516,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 520,
"args": [
"'zip'",
"'postal_code'"
],
"kwargs": {},
"code": "table_h.column_rename('zip', 'postal_code')",
"phase": "before_super"
}
]
}
]
}
+36
View File
@@ -0,0 +1,36 @@
{
"version": "6.6",
"module": "currency",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/currency/currency.py",
"class": "Currency",
"method": "__register__",
"line": 60,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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__)))",
"phase": "after_super"
},
{
"object": "data",
"operation": "delete",
"line": 77,
"args": [],
"kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
"phase": "after_super"
}
]
}
]
}
+753
View File
@@ -0,0 +1,753 @@
{
"version": "6.6",
"module": "ir",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionReport",
"method": "__register__",
"line": 570,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 579,
"args": [
"'report_name_module_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('report_name_module_uniq')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "action_report",
"operation": "update",
"line": 582,
"args": [
"[action_report.extension]",
"['txt']"
],
"kwargs": {
"where": "action_report.extension == 'plain'"
},
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionActWindow",
"method": "__register__",
"line": 770,
"operations": [
{
"object": "table",
"operation": "drop_column",
"line": 778,
"args": [
"'auto_refresh'"
],
"kwargs": {},
"code": "table.drop_column('auto_refresh')",
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_column",
"line": 781,
"args": [
"'window_name'"
],
"kwargs": {},
"code": "table.drop_column('window_name')",
"phase": "after_super"
},
{
"object": "table",
"operation": "not_null_action",
"line": 784,
"args": [
"'limit'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('limit', 'remove')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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))",
"phase": "after_super"
},
{
"object": "act_window",
"operation": "update",
"line": 785,
"args": [
"[act_window.limit]",
"[Null]"
],
"kwargs": {
"where": "act_window.limit == 0"
},
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionActWindowView",
"method": "__register__",
"line": 966,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 972,
"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": 1005,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 1011,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py",
"class": "Attachment",
"method": "__register__",
"line": 59,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "attachment",
"operation": "update",
"line": 69,
"args": [
"[attachment.file_id]",
"[attachment.digest]"
],
"kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)"
},
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "attachment",
"operation": "update",
"line": 74,
"args": [
"[attachment.file_id]",
"[Concat(Concat(attachment.digest, '-'), attachment.collision)]"
],
"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))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "table",
"operation": "drop_column",
"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",
"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",
"line": 84,
"args": [
"'resource_name'"
],
"kwargs": {},
"code": "table.drop_constraint('resource_name')",
"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",
"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/model.py",
"class": "ModelButton",
"method": "__register__",
"line": 886,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"line": 892,
"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": 1208,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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')))",
"phase": "after_super"
},
{
"object": "model_data",
"operation": "update",
"line": 1217,
"args": [
"[model_data.module]",
"['ir']"
],
"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'))",
"phase": "after_super"
},
{
"object": "table_h",
"operation": "not_null_action",
"line": 1223,
"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": "Module",
"method": "__register__",
"line": 96,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "sql_table",
"operation": "update",
"line": 111,
"args": [
"[sql_table.state]",
"['activated']"
],
"kwargs": {
"where": "sql_table.state == 'installed'"
},
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "sql_table",
"operation": "update",
"line": 114,
"args": [
"[sql_table.state]",
"['not activated']"
],
"kwargs": {
"where": "sql_table.state == 'uninstalled'"
},
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super"
},
{
"object": "model_data_sql_table",
"operation": "update",
"line": 127,
"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([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleConfigWizardItem",
"method": "__register__",
"line": 386,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "before_super"
},
{
"object": "model_data",
"operation": "update",
"line": 396,
"args": [],
"kwargs": {
"columns": "[model_data.model]",
"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')",
"phase": "before_super"
},
{
"object": "table",
"operation": "not_null_action",
"line": 407,
"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",
"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": 117,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "table",
"operation": "update",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "sequence_type",
"operation": "select",
"line": 132,
"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": 135,
"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": 110,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 118,
"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": 119,
"args": [
"'src_md5'"
],
"kwargs": {},
"code": "table.drop_column('src_md5')",
"phase": "before_super",
"condition": "table.column_exist('src_md5')"
},
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "ir_translation",
"operation": "update",
"line": 124,
"args": [
"[ir_translation.type]",
"['report']"
],
"kwargs": {
"where": "ir_translation.type == 'odt'"
},
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
"class": "Trigger",
"method": "__register__",
"line": 74,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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))",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "sql_table",
"operation": "select",
"line": 86,
"args": [
"sql_table.id",
"sql_table.minimum_delay"
],
"kwargs": {
"where": "sql_table.minimum_delay != Null"
},
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "table",
"operation": "drop_column",
"line": 95,
"args": [
"'minimum_delay'"
],
"kwargs": {},
"code": "table.drop_column('minimum_delay')",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "model",
"operation": "select",
"line": 103,
"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": 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))]))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "sql_table",
"operation": "update",
"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))])",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 109,
"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": 110,
"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",
"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": 601,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 606,
"args": [
"'user'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('user', 'remove')",
"phase": "after_super"
}
]
}
]
}
+355
View File
@@ -0,0 +1,355 @@
{
"version": "6.6",
"module": "party",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
"class": "Address",
"method": "__register__",
"line": 85,
"operations": [
{
"object": "table",
"operation": "column_rename",
"line": 91,
"args": [
"'zip'",
"'postal_code'"
],
"kwargs": {},
"code": "table.column_rename('zip', 'postal_code')",
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
"line": 102,
"args": [
"*sql_table.update([sql_table.street], [value])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "sql_table",
"operation": "update",
"line": 102,
"args": [
"[sql_table.street]",
"[value]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.street], [value])",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "table",
"operation": "drop_column",
"line": 105,
"args": [
"'streetbis'"
],
"kwargs": {},
"code": "table.drop_column('streetbis')",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
"class": "AddressFormat",
"method": "__register__",
"line": 312,
"operations": [
{
"object": "table",
"operation": "update",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
{
"object": "country",
"operation": "select",
"line": 329,
"args": [
"country.code"
],
"kwargs": {
"where": "country.id == table.country"
},
"code": "country.select(country.code, where=country.id == table.country)",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
{
"object": "cursor",
"operation": "execute",
"line": 332,
"args": [
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 333,
"args": [
"'country'"
],
"kwargs": {},
"code": "table_h.drop_column('country')",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
{
"object": "table",
"operation": "update",
"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))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "language",
"operation": "select",
"line": 339,
"args": [
"Substring(language.code, 0, 2)"
],
"kwargs": {
"where": "language.id == table.language"
},
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "cursor",
"operation": "execute",
"line": 342,
"args": [
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "table_h",
"operation": "drop_column",
"line": 343,
"args": [
"'language'"
],
"kwargs": {},
"code": "table_h.drop_column('language')",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
"class": "Category",
"method": "__register__",
"line": 35,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"line": 41,
"args": [
"'name_parent_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('name_parent_uniq')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "Party",
"method": "__register__",
"line": 110,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 116,
"args": [
"'name'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('name', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "PartyLang",
"method": "__register__",
"line": 345,
"operations": [
{
"object": "table",
"operation": "insert",
"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))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "party",
"operation": "select",
"line": 360,
"args": [
"party.id",
"party.lang"
],
"kwargs": {},
"code": "party.select(party.id, party.lang)",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "cursor",
"operation": "execute",
"line": 361,
"args": [
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "party_h",
"operation": "drop_column",
"line": 362,
"args": [
"'lang'"
],
"kwargs": {},
"code": "party_h.drop_column('lang')",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "Identifier",
"method": "__register__",
"line": 625,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party",
"operation": "select",
"line": 638,
"args": [
"party.id",
"party.vat_number",
"party.vat_country"
],
"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))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party_h",
"operation": "drop_column",
"line": 655,
"args": [
"'vat_number'"
],
"kwargs": {},
"code": "party_h.drop_column('vat_number')",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party_h",
"operation": "drop_column",
"line": 656,
"args": [
"'vat_country'"
],
"kwargs": {},
"code": "party_h.drop_column('vat_country')",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"line": 659,
"args": [
"[table.type]",
"['cn_ric']"
],
"kwargs": {
"where": "table.type == 'cn_rit'"
},
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')",
"phase": "after_super"
}
]
}
]
}
+180
View File
@@ -0,0 +1,180 @@
{
"version": "6.6",
"module": "product",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "Product",
"method": "__register__",
"line": 444,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 455,
"args": [
"*table.update([table.suffix_code], [table.code])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
"phase": "after_super",
"condition": "fill_suffix_code"
},
{
"object": "table",
"operation": "update",
"line": 455,
"args": [
"[table.suffix_code]",
"[table.code]"
],
"kwargs": {},
"code": "table.update([table.suffix_code], [table.code])",
"phase": "after_super",
"condition": "fill_suffix_code"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "ProductCostPriceMethod",
"method": "__register__",
"line": 708,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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])))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "insert",
"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]))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "cost_price",
"operation": "select",
"line": 732,
"args": [
"*[Column(cost_price, c) for c in columns]"
],
"kwargs": {},
"code": "cost_price.select(*[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",
"class": "ProductCostPrice",
"method": "__register__",
"line": 772,
"operations": [
{
"object": "table",
"operation": "add_column",
"line": 786,
"args": [
"'template'",
"'INTEGER'"
],
"kwargs": {},
"code": "table.add_column('template', 'INTEGER')",
"phase": "after_super",
"condition": "not exist"
},
{
"object": "cursor",
"operation": "execute",
"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))))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "insert",
"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)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select",
"line": 796,
"args": [
"*[Column(sql_table, c) for c in columns] + [product.id]"
],
"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))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "delete",
"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))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "table",
"operation": "drop_column",
"line": 806,
"args": [
"'template'"
],
"kwargs": {},
"code": "table.drop_column('template')",
"phase": "after_super",
"condition": "table.column_exist('template')"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "6.6",
"module": "product_measurements",
"files": []
}
+96
View File
@@ -0,0 +1,96 @@
{
"version": "6.6",
"module": "production",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/production/bom.py",
"class": "BOMInput",
"method": "__register__",
"line": 70,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"line": 75,
"args": [
"'product_bom_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('product_bom_uniq')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
"class": "Production",
"method": "__register__",
"line": 266,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 272,
"args": [
"'code'",
"'number'"
],
"kwargs": {},
"code": "table_h.column_rename('code', 'number')",
"phase": "before_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "cursor",
"operation": "execute",
"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)))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"line": 278,
"args": [
"[table.planned_start_date]",
"[table.planned_date]"
],
"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))",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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'))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"line": 285,
"args": [
"[table.state]",
"['cancelled']"
],
"kwargs": {
"where": "table.state == 'cancel'"
},
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')",
"phase": "after_super"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "6.6",
"module": "production_split",
"files": []
}
+101
View File
@@ -0,0 +1,101 @@
{
"version": "6.6",
"module": "res",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
"class": "User",
"method": "__register__",
"line": 202,
"operations": [
{
"object": "cursor",
"operation": "execute",
"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]))",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "sqltable",
"operation": "update",
"line": 215,
"args": [],
"kwargs": {
"columns": "[sqltable.password_hash]",
"values": "[password_hash_new]"
},
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "drop_column",
"line": 218,
"args": [
"'password'"
],
"kwargs": {},
"code": "table.drop_column('password')",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "drop_column",
"line": 219,
"args": [
"'salt'"
],
"kwargs": {},
"code": "table.drop_column('salt')",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "not_null_action",
"line": 222,
"args": [
"'name'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table.not_null_action('name', action='remove')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"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')))",
"phase": "after_super"
},
{
"object": "model_data",
"operation": "update",
"line": 225,
"args": [
"[model_data.noupdate]",
"[True]"
],
"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'))",
"phase": "after_super"
}
]
}
]
}
+40
View File
@@ -0,0 +1,40 @@
{
"version": "6.6",
"module": "stock_lot",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py",
"class": "Template",
"method": "__register__",
"line": 60,
"operations": [
{
"object": "cursor_select",
"operation": "execute",
"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))",
"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",
"line": 82,
"args": [
"template_lot_type.template"
],
"kwargs": {
"distinct_on": "template_lot_type.template"
},
"code": "template_lot_type.select(template_lot_type.template, 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)"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "6.6",
"module": "stock_lot_sled",
"files": []
}
+26
View File
@@ -0,0 +1,26 @@
{
"version": "6.6",
"module": "stock_product_location",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py",
"class": "ProductLocation",
"method": "__register__",
"line": 41,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 47,
"args": [
"'product'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('product', 'remove')",
"phase": "after_super"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "6.6",
"module": "stock_split",
"files": []
}