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
+49
View File
@@ -2,6 +2,30 @@
"version": "7.4",
"module": "company",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/company/ir.py",
"class": "CronCompany",
"method": "__register__",
"line": 107,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"cron_company_rel",
"ir_cron-company_company"
],
"line": 109,
"args": [
"'cron_company_rel'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/company/res.py",
"class": "User",
@@ -11,6 +35,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 139,
"args": [
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
@@ -23,6 +51,10 @@
{
"object": "user_company",
"operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 139,
"args": [
"[user_company.user, user_company.company]",
@@ -36,6 +68,9 @@
{
"object": "table",
"operation": "select",
"tables": [
"res_user"
],
"line": 141,
"args": [
"table.id",
@@ -51,6 +86,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 144,
"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 +102,10 @@
{
"object": "user_company",
"operation": "insert",
"tables": [
"res_user-company_company",
"res_user"
],
"line": 144,
"args": [
"[user_company.user, user_company.company]",
@@ -76,6 +119,9 @@
{
"object": "table",
"operation": "select",
"tables": [
"res_user"
],
"line": 146,
"args": [
"table.id",
@@ -91,6 +137,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 150,
"args": [
"'main_company'"
+37
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 187,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
@@ -22,6 +25,9 @@
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
"line": 187,
"args": [],
"kwargs": {
@@ -41,6 +47,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 435,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
@@ -52,6 +61,9 @@
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
"line": 435,
"args": [],
"kwargs": {
@@ -63,6 +75,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 439,
"args": [
"'type'"
@@ -76,6 +91,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
"line": 442,
"args": [
"'code'"
@@ -94,9 +112,28 @@
"method": "__register__",
"line": 507,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 509,
"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": 511,
"args": [
"'zip'",
+12
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'",
@@ -53,6 +62,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"currency_currency_rate"
],
"line": 309,
"args": [
"'check_currency_rate'"
+160
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 963,
"args": [
"'sequence'",
@@ -31,6 +34,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1012,
"args": [
"'sequence'",
@@ -51,6 +57,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 130,
"args": [
"'next_call'",
@@ -71,6 +80,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_export"
],
"line": 67,
"args": [
"*table.update([table.user], [table.create_uid])"
@@ -83,6 +95,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_export"
],
"line": 67,
"args": [
"[table.user]",
@@ -104,6 +119,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_field"
],
"line": 309,
"args": [
"'model'",
@@ -117,6 +135,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field"
],
"line": 310,
"args": [
"'model'",
@@ -130,6 +151,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_field"
],
"line": 311,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
@@ -142,6 +166,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_field"
],
"line": 311,
"args": [
"[table.model]",
@@ -158,6 +185,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_field"
],
"line": 315,
"args": [
"'_temp_model'"
@@ -178,6 +208,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_access"
],
"line": 546,
"args": [
"'model'",
@@ -191,6 +224,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_access"
],
"line": 547,
"args": [
"'model'",
@@ -204,6 +240,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_access"
],
"line": 548,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
@@ -216,6 +255,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_access"
],
"line": 548,
"args": [
"[table.model]",
@@ -232,6 +274,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_access"
],
"line": 552,
"args": [
"'_temp_model'"
@@ -252,6 +297,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_field_access"
],
"line": 801,
"args": [
"'field'",
@@ -265,6 +313,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field_access"
],
"line": 802,
"args": [
"'model'",
@@ -278,6 +329,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field_access"
],
"line": 803,
"args": [
"'field'",
@@ -291,6 +345,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_field_access"
],
"line": 804,
"args": [
"*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)"
@@ -303,6 +360,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_field_access"
],
"line": 804,
"args": [
"[table.model, table.field]",
@@ -319,6 +379,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_field_access"
],
"line": 809,
"args": [
"'_temp_field'"
@@ -339,6 +402,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_button"
],
"line": 1000,
"args": [
"'model'",
@@ -352,6 +418,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_button"
],
"line": 1001,
"args": [
"'model'",
@@ -365,6 +434,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_button"
],
"line": 1002,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
@@ -377,6 +449,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_button"
],
"line": 1002,
"args": [
"[table.model]",
@@ -393,6 +468,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_button"
],
"line": 1006,
"args": [
"'_temp_model'"
@@ -405,6 +483,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 1011,
"args": [
"'name_model_uniq'"
@@ -424,6 +505,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1350,
"args": [
"'db_id'"
@@ -445,6 +529,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 329,
"args": [
"'sequence'",
@@ -465,6 +552,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_rule_group"
],
"line": 96,
"args": [
"'model'",
@@ -478,6 +568,9 @@
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_rule_group"
],
"line": 97,
"args": [
"'model'",
@@ -491,6 +584,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_rule_group"
],
"line": 98,
"args": [
"*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)"
@@ -503,6 +599,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_rule_group"
],
"line": 98,
"args": [
"[table.model]",
@@ -519,6 +618,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_rule_group"
],
"line": 102,
"args": [
"'_temp_model'"
@@ -539,6 +641,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47,
"args": [
"'code'"
@@ -560,6 +665,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 135,
"args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
@@ -572,6 +681,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 135,
"args": [
"[table.sequence_type]",
@@ -585,6 +698,9 @@
{
"object": "sequence_type",
"operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 137,
"args": [
"sequence_type.id"
@@ -599,6 +715,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 140,
"args": [
"'code'"
@@ -619,6 +738,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 127,
"args": [
"'translation_md5_uniq'"
@@ -631,6 +753,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 128,
"args": [
"'src_md5'"
@@ -651,6 +776,9 @@
{
"object": "model",
"operation": "select",
"tables": [
"ir_model"
],
"line": 92,
"args": [
"model.model"
@@ -665,6 +793,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 94,
"args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
@@ -677,6 +808,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_trigger"
],
"line": 94,
"args": [
"[sql_table.action]",
@@ -690,6 +824,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 98,
"args": [
"'action_model'"
@@ -702,6 +839,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 99,
"args": [
"'action_function'"
@@ -722,6 +862,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 41,
"args": [
"'sequence'",
@@ -742,6 +885,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_ui_view_tree_optional"
],
"line": 579,
"args": [
"'view_id'",
@@ -754,6 +900,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_ui_view_tree_optional",
"ir_ui_view"
],
"line": 584,
"args": [
"*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)"
@@ -765,6 +915,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_ui_view_tree_optional",
"ir_ui_view"
],
"line": 584,
"args": [
"[table.model]",
@@ -779,6 +933,9 @@
{
"object": "view",
"operation": "select",
"tables": [
"ir_ui_view"
],
"line": 586,
"args": [
"view.model"
@@ -800,6 +957,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 762,
"args": [
"'user'",
+67
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
"line": 88,
"args": [
"'zip'",
@@ -31,6 +34,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 318,
"args": [
"[table.country_code]",
@@ -44,6 +51,9 @@
{
"object": "country",
"operation": "select",
"tables": [
"country_country"
],
"line": 320,
"args": [
"country.code"
@@ -58,6 +68,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 323,
"args": [
"*query"
@@ -70,6 +81,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 324,
"args": [
"'country'"
@@ -82,6 +96,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_address_format",
"ir_lang"
],
"line": 328,
"args": [
"[table.language_code]",
@@ -95,6 +113,9 @@
{
"object": "language",
"operation": "select",
"tables": [
"ir_lang"
],
"line": 330,
"args": [
"Substring(language.code, 0, 2)"
@@ -109,6 +130,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 333,
"args": [
"*query"
@@ -121,6 +143,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"party_address_format"
],
"line": 334,
"args": [
"'language'"
@@ -141,6 +166,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_configuration"
],
"line": 45,
"args": [
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
@@ -153,6 +181,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_configuration"
],
"line": 45,
"args": [
"[table.identifier_types]",
@@ -165,6 +196,30 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "PartyCategory",
"method": "__register__",
"line": 452,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"party_category_rel",
"party_party-party_category"
],
"line": 454,
"args": [
"'party_category_rel'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('party_category_rel', cls._table)",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "Identifier",
@@ -174,6 +229,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 830,
"args": [
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
@@ -185,6 +243,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
"line": 830,
"args": [
"[table.type]",
@@ -199,6 +260,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 841,
"args": [
"*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')"
@@ -210,6 +274,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
"line": 841,
"args": [
"[table.type]",
+6
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_product"
],
"line": 516,
"args": [
"*table.update([table.suffix_code], [table.code])"
@@ -23,6 +26,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"product_product"
],
"line": 516,
"args": [
"[table.suffix_code]",
+21
View File
@@ -11,6 +11,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production_bom_input"
],
"line": 152,
"args": [
"'uom'",
@@ -24,6 +27,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 158,
"args": [
"'product_bom_uniq'"
@@ -43,6 +49,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_cron"
],
"line": 26,
"args": [
"*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')"
@@ -54,6 +63,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_cron"
],
"line": 26,
"args": [
"[table.method]",
@@ -76,6 +88,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production"
],
"line": 272,
"args": [
"'uom'",
@@ -89,6 +104,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
"line": 280,
"args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
@@ -100,6 +118,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
"line": 280,
"args": [
"[table.state]",
+6
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 214,
"args": [
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
@@ -22,6 +25,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 214,
"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'",