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
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "company",
"files": []
}
+48
View File
@@ -0,0 +1,48 @@
{
"version": "5.2",
"module": "country",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/country/country.py",
"class": "Country",
"method": "__register__",
"line": 30,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 36,
"args": [
"'name_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('name_uniq')",
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_constraint",
"line": 37,
"args": [
"'code_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('code_uniq')",
"phase": "after_super"
},
{
"object": "table",
"operation": "not_null_action",
"line": 40,
"args": [
"'code'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('code', 'remove')",
"phase": "after_super"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "currency",
"files": []
}
+684
View File
@@ -0,0 +1,684 @@
{
"version": "5.2",
"module": "ir",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionKeyword",
"method": "__register__",
"line": 147,
"operations": [
{
"object": "table",
"operation": "index_action",
"line": 151,
"args": [
"['keyword', 'model']",
"'add'"
],
"kwargs": {},
"code": "table.index_action(['keyword', 'model'], 'add')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/action.py",
"class": "ActionReport",
"method": "__register__",
"line": 529,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 538,
"args": [
"'report_name_module_uniq'"
],
"kwargs": {},
"code": "table.drop_constraint('report_name_module_uniq')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"line": 541,
"args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
],
"kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))",
"phase": "after_super"
},
{
"object": "action_report",
"operation": "update",
"line": 541,
"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": 729,
"operations": [
{
"object": "table",
"operation": "drop_column",
"line": 737,
"args": [
"'auto_refresh'"
],
"kwargs": {},
"code": "table.drop_column('auto_refresh')",
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_column",
"line": 740,
"args": [
"'window_name'"
],
"kwargs": {},
"code": "table.drop_column('window_name')",
"phase": "after_super"
},
{
"object": "table",
"operation": "not_null_action",
"line": 743,
"args": [
"'limit'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('limit', 'remove')",
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"line": 744,
"args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
],
"kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))",
"phase": "after_super"
},
{
"object": "act_window",
"operation": "update",
"line": 744,
"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": 909,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 915,
"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": 948,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 954,
"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": 60,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 70,
"args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "attachment",
"operation": "update",
"line": 70,
"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": 75,
"args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "attachment",
"operation": "update",
"line": 75,
"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": 81,
"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": 82,
"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": 85,
"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": 66,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 77,
"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": "ModelData",
"method": "__register__",
"line": 1135,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 1144,
"args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super"
},
{
"object": "model_data",
"operation": "update",
"line": 1144,
"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": 1150,
"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": 103,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 119,
"args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))",
"phase": "after_super"
},
{
"object": "sql_table",
"operation": "update",
"line": 119,
"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": 122,
"args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))",
"phase": "after_super"
},
{
"object": "sql_table",
"operation": "update",
"line": 122,
"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": 135,
"args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
],
"kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))",
"phase": "after_super"
},
{
"object": "model_data_sql_table",
"operation": "update",
"line": 135,
"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": 396,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 407,
"args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))",
"phase": "before_super"
},
{
"object": "model_data",
"operation": "update",
"line": 407,
"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": 418,
"args": [
"'sequence'",
"'remove'"
],
"kwargs": {},
"code": "table.not_null_action('sequence', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/queue.py",
"class": "Queue",
"method": "__register__",
"line": 35,
"operations": [
{
"object": "table_h",
"operation": "index_action",
"line": 41,
"args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
],
"kwargs": {
"action": "'add'"
},
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/session.py",
"class": "Session",
"method": "__register__",
"line": 36,
"operations": [
{
"object": "table",
"operation": "index_action",
"line": 40,
"args": [
"'create_uid'",
"'add'"
],
"kwargs": {},
"code": "table.index_action('create_uid', 'add')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/translation.py",
"class": "Translation",
"method": "__register__",
"line": 85,
"operations": [
{
"object": "table",
"operation": "drop_constraint",
"line": 93,
"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": 94,
"args": [
"'src_md5'"
],
"kwargs": {},
"code": "table.drop_column('src_md5')",
"phase": "before_super",
"condition": "table.column_exist('src_md5')"
},
{
"object": "cursor",
"operation": "execute",
"line": 99,
"args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
],
"kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))",
"phase": "after_super"
},
{
"object": "ir_translation",
"operation": "update",
"line": 99,
"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"
},
{
"object": "table",
"operation": "index_action",
"line": 105,
"args": [
"['lang', 'type', 'name']",
"'add'"
],
"kwargs": {},
"code": "table.index_action(['lang', 'type', 'name'], 'add')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
"class": "Trigger",
"method": "__register__",
"line": 76,
"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')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py",
"class": "TriggerLog",
"method": "__register__",
"line": 302,
"operations": [
{
"object": "table",
"operation": "index_action",
"line": 306,
"args": [
"['trigger', 'record_id']",
"'add'"
],
"kwargs": {},
"code": "table.index_action(['trigger', 'record_id'], 'add')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py",
"class": "Icon",
"method": "__register__",
"line": 33,
"operations": [
{
"object": "table",
"operation": "not_null_action",
"line": 39,
"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": "ViewTreeState",
"method": "__register__",
"line": 323,
"operations": [
{
"object": "table",
"operation": "index_action",
"line": 327,
"args": [
"['model', 'domain', 'user', 'child_name']",
"'add'"
],
"kwargs": {},
"code": "table.index_action(['model', 'domain', 'user', 'child_name'], 'add')",
"phase": "after_super"
}
]
}
]
}
+208
View File
@@ -0,0 +1,208 @@
{
"version": "5.2",
"module": "party",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
"class": "Address",
"method": "__register__",
"line": 66,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 79,
"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": 79,
"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": 82,
"args": [
"'streetbis'"
],
"kwargs": {},
"code": "table.drop_column('streetbis')",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/category.py",
"class": "Category",
"method": "__register__",
"line": 43,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"line": 49,
"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": 91,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"line": 97,
"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": 278,
"operations": [
{
"object": "table",
"operation": "insert",
"line": 292,
"args": [
"[table.party, table.lang]",
"party.select(party.id, party.lang)"
],
"kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "party",
"operation": "select",
"line": 294,
"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": 295,
"args": [
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "party_h",
"operation": "drop_column",
"line": 296,
"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": "PartyIdentifier",
"method": "__register__",
"line": 439,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 451,
"args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
],
"kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party",
"operation": "select",
"line": 451,
"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": 468,
"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": 469,
"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')"
}
]
}
]
}
+147
View File
@@ -0,0 +1,147 @@
{
"version": "5.2",
"module": "product",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "ProductCostPriceMethod",
"method": "__register__",
"line": 382,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 404,
"args": [
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "insert",
"line": 404,
"args": [],
"kwargs": {
"columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "cost_price",
"operation": "select",
"line": 406,
"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": 437,
"operations": [
{
"object": "table",
"operation": "add_column",
"line": 452,
"args": [
"'template'",
"'INTEGER'"
],
"kwargs": {},
"code": "table.add_column('template', 'INTEGER')",
"phase": "after_super",
"condition": "not exist"
},
{
"object": "cursor",
"operation": "execute",
"line": 459,
"args": [
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "insert",
"line": 459,
"args": [],
"kwargs": {
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select",
"line": 462,
"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": 469,
"args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "delete",
"line": 469,
"args": [],
"kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
},
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "table",
"operation": "drop_column",
"line": 472,
"args": [
"'template'"
],
"kwargs": {},
"code": "table.drop_column('template')",
"phase": "after_super",
"condition": "table.column_exist('template')"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "product_measurements",
"files": []
}
+52
View File
@@ -0,0 +1,52 @@
{
"version": "5.2",
"module": "production",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
"class": "Production",
"method": "__register__",
"line": 222,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"line": 228,
"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": 234,
"args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"line": 234,
"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"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "production_split",
"files": []
}
+76
View File
@@ -0,0 +1,76 @@
{
"version": "5.2",
"module": "res",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/res/user.py",
"class": "User",
"method": "__register__",
"line": 194,
"operations": [
{
"object": "cursor",
"operation": "execute",
"line": 204,
"args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
],
"kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "sqltable",
"operation": "update",
"line": 204,
"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": 207,
"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": 208,
"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": 211,
"args": [
"'name'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table.not_null_action('name', action='remove')",
"phase": "after_super"
}
]
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "stock_lot",
"files": []
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "stock_lot_sled",
"files": []
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "stock_product_location",
"files": []
}
+5
View File
@@ -0,0 +1,5 @@
{
"version": "5.2",
"module": "stock_split",
"files": []
}