extract gets and saves most tables worked on

some cases still need some work...
This commit is contained in:
2026-08-08 22:32:31 +02:00
parent f14f709649
commit 24caf23986
151 changed files with 7017 additions and 1215 deletions
+69
View File
@@ -2,6 +2,50 @@
"version": "6.8",
"module": "company",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
"class": "ConfigurationLang",
"method": "__register__",
"line": 21,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_configuration_party_lang"
],
"line": 22,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/company/party.py",
"class": "PartyLang",
"method": "__register__",
"line": 50,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 51,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
"class": "User",
@@ -11,6 +55,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83,
"args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
@@ -23,6 +71,10 @@
{
"object": "user_company",
"operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 83,
"args": [
"[user_company.user, user_company.company]",
@@ -36,6 +88,9 @@
{
"object": "table",
"operation": "select",
"tables": [
"res_user"
],
"line": 85,
"args": [
"table.id",
@@ -51,6 +106,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"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)))"
@@ -63,6 +122,10 @@
{
"object": "user_company",
"operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 88,
"args": [
"[user_company.user, user_company.company]",
@@ -76,6 +139,9 @@
{
"object": "table",
"operation": "select",
"tables": [
"res_user"
],
"line": 90,
"args": [
"table.id",
@@ -91,6 +157,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 94,
"args": [
"'main_company'"
+46
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 189,
"args": [
"'name_uniq'"
@@ -22,6 +25,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 190,
"args": [
"'code_uniq'"
@@ -33,6 +39,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"country_country"
],
"line": 193,
"args": [
"'code'",
@@ -45,6 +54,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 196,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
@@ -56,6 +68,9 @@
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
"line": 196,
"args": [],
"kwargs": {
@@ -75,6 +90,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 444,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
@@ -86,6 +104,9 @@
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
"line": 444,
"args": [],
"kwargs": {
@@ -97,6 +118,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 448,
"args": [
"'type'"
@@ -110,6 +134,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 451,
"args": [
"'code'"
@@ -128,9 +155,28 @@
"method": "__register__",
"line": 516,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 518,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"country_postal_code"
],
"line": 520,
"args": [
"'zip'",
+9
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 89,
"args": [
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
@@ -22,6 +25,9 @@
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
"line": 89,
"args": [],
"kwargs": {
@@ -33,6 +39,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"currency_currency"
],
"line": 93,
"args": [
"'symbol'",
+211
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 591,
"args": [
"'report_name_module_uniq'"
@@ -22,6 +25,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_report"
],
"line": 594,
"args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
@@ -33,6 +39,9 @@
{
"object": "action_report",
"operation": "update",
"tables": [
"ir_action_report"
],
"line": 594,
"args": [
"[action_report.extension]",
@@ -55,6 +64,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 782,
"args": [
"'auto_refresh'"
@@ -66,6 +78,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 785,
"args": [
"'window_name'"
@@ -77,6 +92,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 788,
"args": [
"'limit'",
@@ -89,6 +107,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 789,
"args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
@@ -100,6 +121,9 @@
{
"object": "act_window",
"operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 789,
"args": [
"[act_window.limit]",
@@ -122,6 +146,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 985,
"args": [
"'sequence'",
@@ -142,6 +169,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1034,
"args": [
"'sequence'",
@@ -162,6 +192,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 69,
"args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
@@ -174,6 +207,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 69,
"args": [
"[attachment.file_id]",
@@ -189,6 +225,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 74,
"args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
@@ -201,6 +240,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 74,
"args": [
"[attachment.file_id]",
@@ -216,6 +258,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80,
"args": [
"'digest'"
@@ -228,6 +273,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81,
"args": [
"'collision'"
@@ -240,6 +288,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 84,
"args": [
"'resource_name'"
@@ -259,6 +310,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 103,
"args": [
"'next_call'",
@@ -279,6 +333,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 901,
"args": [
"'name_model_uniq'"
@@ -298,6 +355,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1236,
"args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
@@ -309,6 +369,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 1236,
"args": [
"[model_data.module]",
@@ -323,6 +386,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1242,
"args": [
"'db_id'"
@@ -341,9 +407,29 @@
"method": "__register__",
"line": 97,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 107,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 112,
"args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
@@ -355,6 +441,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 112,
"args": [
"[sql_table.state]",
@@ -369,6 +458,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 115,
"args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
@@ -380,6 +472,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 115,
"args": [
"[sql_table.state]",
@@ -394,6 +489,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 128,
"args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
@@ -405,6 +503,9 @@
{
"object": "model_data_sql_table",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 128,
"args": [
"[model_data_sql_table.module]",
@@ -418,15 +519,60 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 337,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 341,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleConfigWizardItem",
"method": "__register__",
"line": 370,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 379,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 380,
"args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
@@ -438,6 +584,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 380,
"args": [],
"kwargs": {
@@ -451,6 +600,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 391,
"args": [
"'sequence'",
@@ -471,6 +623,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47,
"args": [
"'code'"
@@ -492,6 +647,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130,
"args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
@@ -504,6 +663,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130,
"args": [
"[table.sequence_type]",
@@ -517,6 +680,9 @@
{
"object": "sequence_type",
"operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 132,
"args": [
"sequence_type.id"
@@ -531,6 +697,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 135,
"args": [
"'code'"
@@ -551,6 +720,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 119,
"args": [
"'translation_md5_uniq'"
@@ -563,6 +735,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 120,
"args": [
"'src_md5'"
@@ -575,6 +750,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_translation"
],
"line": 125,
"args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
@@ -586,6 +764,9 @@
{
"object": "ir_translation",
"operation": "update",
"tables": [
"ir_translation"
],
"line": 125,
"args": [
"[ir_translation.type]",
@@ -608,6 +789,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 91,
"args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
@@ -620,6 +804,9 @@
{
"object": "sql_table",
"operation": "select",
"tables": [
"ir_trigger"
],
"line": 91,
"args": [
"sql_table.id",
@@ -635,6 +822,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 100,
"args": [
"'minimum_delay'"
@@ -647,6 +837,9 @@
{
"object": "model",
"operation": "select",
"tables": [
"ir_model"
],
"line": 108,
"args": [
"model.model"
@@ -661,6 +854,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 110,
"args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
@@ -673,6 +869,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_trigger"
],
"line": 110,
"args": [
"[sql_table.action]",
@@ -686,6 +885,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 114,
"args": [
"'action_model'"
@@ -698,6 +900,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 115,
"args": [
"'action_function'"
@@ -718,6 +923,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 37,
"args": [
"'sequence'",
@@ -738,6 +946,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 606,
"args": [
"'user'",
+103
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
"line": 91,
"args": [
"'zip'",
@@ -23,6 +26,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_address"
],
"line": 102,
"args": [
"*sql_table.update([sql_table.street], [value])"
@@ -35,6 +41,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"party_address"
],
"line": 102,
"args": [
"[sql_table.street]",
@@ -48,6 +57,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"party_address"
],
"line": 105,
"args": [
"'streetbis'"
@@ -68,6 +80,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 327,
"args": [
"[table.country_code]",
@@ -81,6 +97,9 @@
{
"object": "country",
"operation": "select",
"tables": [
"country_country"
],
"line": 329,
"args": [
"country.code"
@@ -95,6 +114,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 332,
"args": [
"*query"
@@ -107,6 +127,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 333,
"args": [
"'country'"
@@ -119,6 +142,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 337,
"args": [
"[table.language_code]",
@@ -132,6 +159,9 @@
{
"object": "language",
"operation": "select",
"tables": [
"ir_lang"
],
"line": 339,
"args": [
"Substring(language.code, 0, 2)"
@@ -146,6 +176,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 342,
"args": [
"*query"
@@ -158,6 +189,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 343,
"args": [
"'language'"
@@ -178,6 +212,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 41,
"args": [
"'name_parent_uniq'"
@@ -188,6 +225,26 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 99,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 100,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "Party",
@@ -197,6 +254,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"party_party"
],
"line": 116,
"args": [
"'name'",
@@ -214,9 +274,27 @@
"method": "__register__",
"line": 345,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"party_party_lang"
],
"line": 349,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 358,
"args": [
"[table.party, table.lang]",
@@ -230,6 +308,9 @@
{
"object": "party",
"operation": "select",
"tables": [
"party_party"
],
"line": 360,
"args": [
"party.id",
@@ -243,6 +324,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 361,
"args": [
"*query"
@@ -255,6 +337,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 362,
"args": [
"'lang'"
@@ -275,6 +360,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_party"
],
"line": 638,
"args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
@@ -287,6 +375,9 @@
{
"object": "party",
"operation": "select",
"tables": [
"party_party"
],
"line": 638,
"args": [
"party.id",
@@ -303,6 +394,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 655,
"args": [
"'vat_number'"
@@ -315,6 +409,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 656,
"args": [
"'vat_country'"
@@ -327,6 +424,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 659,
"args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
@@ -338,6 +438,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
"line": 659,
"args": [
"[table.type]",
+120
View File
@@ -2,6 +2,28 @@
"version": "6.8",
"module": "product",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/product/configuration.py",
"class": "ConfigurationDefaultCostPriceMethod",
"method": "__register__",
"line": 54,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_configuration_default_cost_price_method"
],
"line": 55,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "Product",
@@ -11,6 +33,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_product"
],
"line": 458,
"args": [
"*table.update([table.suffix_code], [table.code])"
@@ -23,6 +48,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"product_product"
],
"line": 458,
"args": [
"[table.suffix_code]",
@@ -35,15 +63,67 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "ProductListPrice",
"method": "__register__",
"line": 701,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_list_price"
],
"line": 702,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/product/product.py",
"class": "ProductCostPriceMethod",
"method": "__register__",
"line": 732,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price_method"
],
"line": 739,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [],
"line": 740,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(ProductCostPrice._table)",
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 754,
"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]))"
@@ -56,6 +136,10 @@
{
"object": "sql_table",
"operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 754,
"args": [],
"kwargs": {
@@ -69,6 +153,9 @@
{
"object": "cost_price",
"operation": "select",
"tables": [
"product_cost_price"
],
"line": 756,
"args": [
"*[Column(cost_price, c) for c in columns]"
@@ -86,9 +173,26 @@
"method": "__register__",
"line": 796,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"product_cost_price"
],
"line": 803,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 810,
"args": [
"'template'",
@@ -102,6 +206,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price"
],
"line": 817,
"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)))"
@@ -114,6 +221,9 @@
{
"object": "sql_table",
"operation": "insert",
"tables": [
"product_cost_price"
],
"line": 817,
"args": [],
"kwargs": {
@@ -127,6 +237,7 @@
{
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select",
"tables": [],
"line": 820,
"args": [
"*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -141,6 +252,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price"
],
"line": 827,
"args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
@@ -153,6 +267,9 @@
{
"object": "sql_table",
"operation": "delete",
"tables": [
"product_cost_price"
],
"line": 827,
"args": [],
"kwargs": {
@@ -165,6 +282,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 830,
"args": [
"'template'"
+40
View File
@@ -11,6 +11,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 75,
"args": [
"'product_bom_uniq'"
@@ -21,6 +24,28 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/production/configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 44,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_exist",
"tables": [
"production_configuration_production_sequence"
],
"line": 45,
"args": [
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/production/production.py",
"class": "Production",
@@ -30,6 +55,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production"
],
"line": 269,
"args": [
"'code'",
@@ -43,6 +71,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
"line": 275,
"args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
@@ -54,6 +85,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
"line": 275,
"args": [
"[table.planned_start_date]",
@@ -68,6 +102,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
"line": 282,
"args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
@@ -79,6 +116,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
"line": 282,
"args": [
"[table.state]",
+21
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user"
],
"line": 215,
"args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
@@ -23,6 +26,9 @@
{
"object": "sqltable",
"operation": "update",
"tables": [
"res_user"
],
"line": 215,
"args": [],
"kwargs": {
@@ -36,6 +42,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 218,
"args": [
"'password'"
@@ -48,6 +57,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 219,
"args": [
"'salt'"
@@ -60,6 +72,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"res_user"
],
"line": 222,
"args": [
"'name'"
@@ -73,6 +88,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"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'))"
@@ -84,6 +102,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 225,
"args": [
"[model_data.noupdate]",
+2
View File
@@ -11,6 +11,7 @@
{
"object": "cursor_select",
"operation": "execute",
"tables": [],
"line": 85,
"args": [
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
@@ -23,6 +24,7 @@
{
"object": "template_lot_type",
"operation": "select",
"tables": [],
"line": 85,
"args": [
"template_lot_type.template"
+3
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"stock_product_location"
],
"line": 47,
"args": [
"'product'",