Dedublizierung gefixt

- lange existierender Updatecode wurde in jeder 2. Version angezeigt
- UPDATEANALYSE.md ergänzt.
This commit is contained in:
2026-08-20 13:27:23 +02:00
parent 5d227d2f61
commit b549063ff6
138 changed files with 43143 additions and 1472 deletions
+90
View File
@@ -22,6 +22,39 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 24,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 30,
"args": [
"'party.configuration'",
"cls._configuration_value_field",
"cls",
"cls._configuration_value_field"
],
"kwargs": {
"fields": "['company']"
},
"code": "migrate_property(\n 'party.configuration', cls._configuration_value_field,\n cls, cls._configuration_value_field, fields=['company'])",
"unresolved": true,
"phase": "after_super",
"condition": "not exist"
}
]
},
@@ -45,6 +78,63 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 47,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "super(PartyLang, cls)",
"operation": "_migrate_property",
"tables": [],
"line": 58,
"args": [
"field_names",
"value_names",
"fields"
],
"kwargs": {},
"code": "super(PartyLang, cls)._migrate_property(\n field_names, value_names, fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 53
}
]
},
{
"object": "",
"operation": "super",
"tables": [],
"line": 58,
"args": [
"PartyLang",
"cls"
],
"kwargs": {},
"code": "super(PartyLang, cls)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 53
}
]
}
]
}
+66
View File
@@ -9,6 +9,39 @@
"method": "__register__",
"line": 30,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 31,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 34,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 34,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -89,6 +122,39 @@
"method": "__register__",
"line": 214,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 215,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 218,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 218,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
+33
View File
@@ -9,6 +9,39 @@
"method": "__register__",
"line": 51,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 52,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 55,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 55,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table_h",
"operation": "not_null_action",
+297
View File
@@ -33,6 +33,28 @@
"method": "__register__",
"line": 525,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 528,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 529,
"args": [],
"kwargs": {},
"code": "transaction.connection.(transaction.connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -87,6 +109,28 @@
"method": "__register__",
"line": 705,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 706,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 706,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_column",
@@ -218,6 +262,28 @@
"method": "__register__",
"line": 63,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 64,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 64,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -284,6 +350,36 @@
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 80,
"args": [
"Concat(attachment.digest, '-')",
"attachment.collision"
],
"kwargs": {},
"code": "Concat(Concat(attachment.digest, '-'),\n attachment.collision)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 80,
"args": [
"attachment.digest",
"'-'"
],
"kwargs": {},
"code": "Concat(attachment.digest, '-')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "table",
"operation": "drop_column",
@@ -375,6 +471,28 @@
"method": "__register__",
"line": 1159,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 1160,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 1160,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -431,6 +549,39 @@
"method": "__register__",
"line": 95,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 96,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 100,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 100,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_rename",
@@ -540,6 +691,19 @@
},
"code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super"
},
{
"object": "model_data_sql_table.fs_id",
"operation": "in_",
"tables": [],
"line": 129,
"args": [
"button_fs_ids"
],
"kwargs": {},
"code": "model_data_sql_table.fs_id.in_(button_fs_ids)",
"unresolved": true,
"phase": "after_super"
}
]
},
@@ -576,6 +740,39 @@
"method": "__register__",
"line": 385,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 386,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 386,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 387,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_rename",
@@ -696,6 +893,28 @@
"method": "__register__",
"line": 80,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 81,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 82,
"args": [],
"kwargs": {},
"code": "transaction.connection.(transaction.connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -781,6 +1000,28 @@
"method": "__register__",
"line": 73,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 74,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 74,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -814,6 +1055,20 @@
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "datetime",
"operation": "timedelta",
"tables": [],
"line": 89,
"args": [],
"kwargs": {
"hours": "delay"
},
"code": "datetime.timedelta(hours=(datetime.timedelta(hours=delay)))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "cursor",
"operation": "execute",
@@ -862,6 +1117,18 @@
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 99,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "model",
"operation": "select",
@@ -910,6 +1177,36 @@
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 106,
"args": [
"action_model",
"Concat('|', sql_table.action_function)"
],
"kwargs": {},
"code": "Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 106,
"args": [
"'|'",
"sql_table.action_function"
],
"kwargs": {},
"code": "Concat(\n '|', sql_table.action_function)",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "table_h",
"operation": "drop_column",
+307
View File
@@ -9,6 +9,88 @@
"method": "__register__",
"line": 67,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 68,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 68,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 77,
"args": [
"Coalesce(sql_table.street, '')",
"Concat('\\n', Coalesce(sql_table.streetbis, ''))"
],
"kwargs": {},
"code": "Concat(\n Coalesce(sql_table.street, ''),\n Concat('\\n', Coalesce(sql_table.streetbis, '')))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 78,
"args": [
"sql_table.street",
"''"
],
"kwargs": {},
"code": "Coalesce(sql_table.street, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 79,
"args": [
"'\\n'",
"Coalesce(sql_table.streetbis, '')"
],
"kwargs": {},
"code": "Concat('\\n', Coalesce(sql_table.streetbis, ''))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 79,
"args": [
"sql_table.streetbis",
"''"
],
"kwargs": {},
"code": "Coalesce(sql_table.streetbis, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "cursor",
"operation": "execute",
@@ -64,6 +146,39 @@
"method": "__register__",
"line": 265,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 266,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 272,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 272,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "update",
@@ -160,6 +275,22 @@
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "",
"operation": "Substring",
"tables": [],
"line": 293,
"args": [
"language.code",
"0",
"2"
],
"kwargs": {},
"code": "Substring(language.code, 0, 2)",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "cursor",
"operation": "execute",
@@ -231,6 +362,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 52,
"args": [
"'party.configuration'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"fields": "fields"
},
"code": "migrate_property(\n 'party.configuration', field_names, cls, value_names,\n fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 46
}
]
}
]
},
@@ -265,6 +421,39 @@
"method": "__register__",
"line": 270,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 271,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 273,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 273,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -339,6 +528,32 @@
"code": "party_h.drop_column('lang')",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 295,
"args": [
"'party.party'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"parent": "'party'",
"fields": "fields"
},
"code": "migrate_property(\n 'party.party', field_names, cls, value_names,\n parent='party', fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 289
}
]
}
]
},
@@ -349,6 +564,39 @@
"method": "__register__",
"line": 445,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 446,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 448,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 448,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -383,6 +631,65 @@
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "",
"operation": "get_cc_module",
"tables": [],
"line": 466,
"args": [
"*type.split('_', 1)"
],
"kwargs": {},
"code": "get_cc_module(*type.split('_', 1))",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "type",
"operation": "split",
"tables": [],
"line": 466,
"args": [
"'_'",
"1"
],
"kwargs": {},
"code": "type.split('_', 1)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "",
"operation": "cls",
"tables": [],
"line": 472,
"args": [],
"kwargs": {
"party": "party_id",
"code": "code",
"type": "type"
},
"code": "cls(party=party_id, code=code, type=type)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "cls",
"operation": "save",
"tables": [],
"line": 473,
"args": [
"identifiers"
],
"kwargs": {},
"code": "cls.save(identifiers)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party_h",
"operation": "drop_column",
+308
View File
@@ -22,6 +22,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 66,
"args": [
"'product.configuration'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"fields": "fields"
},
"code": "migrate_property(\n 'product.configuration', field_names, cls, value_names,\n fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 60
}
]
}
]
},
@@ -32,6 +57,54 @@
"method": "__register__",
"line": 401,
"operations": [
{
"object": "table_h",
"operation": "column_exist",
"tables": [],
"line": 405,
"args": [
"'code'"
],
"kwargs": {},
"code": "table_h.column_exist('code')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table_h",
"operation": "column_exist",
"tables": [],
"line": 406,
"args": [
"'suffix_code'"
],
"kwargs": {},
"code": "table_h.column_exist('suffix_code')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 408,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 408,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -85,6 +158,32 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 608,
"args": [
"'product.template'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"parent": "'template'",
"fields": "fields"
},
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 601
}
]
}
]
},
@@ -95,6 +194,39 @@
"method": "__register__",
"line": 622,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 623,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 627,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 627,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -121,6 +253,47 @@
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 655,
"args": [
"'product.template'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"parent": "'template'",
"fields": "fields"
},
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist and (not cost_price_exist)",
"via": [
{
"method": "_migrate_property",
"line": 637
}
]
},
{
"object": "backend",
"operation": "TableHandler",
"tables": [],
"line": 639,
"args": [
"ProductCostPrice",
"module_name"
],
"kwargs": {},
"code": "backend.TableHandler(\n ProductCostPrice, module_name)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist and cost_price_exist"
},
{
"object": "cursor",
"operation": "execute",
@@ -154,6 +327,21 @@
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 646,
"args": [
"sql_table",
"c"
],
"kwargs": {},
"code": "Column(sql_table, c)",
"unresolved": true,
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "cost_price",
"operation": "select",
@@ -168,6 +356,21 @@
"code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 648,
"args": [
"cost_price",
"c"
],
"kwargs": {},
"code": "Column(cost_price, c)",
"unresolved": true,
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
}
]
},
@@ -178,6 +381,39 @@
"method": "__register__",
"line": 678,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 679,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 683,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 683,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -208,6 +444,32 @@
"phase": "after_super",
"condition": "not exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 719,
"args": [
"'product.template'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"parent": "'template'",
"fields": "fields"
},
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 693
}
]
},
{
"object": "cursor",
"operation": "execute",
@@ -239,6 +501,21 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 700,
"args": [
"sql_table",
"c"
],
"kwargs": {},
"code": "Column(sql_table, c)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select",
@@ -254,6 +531,37 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "join",
"tables": [],
"line": 702,
"args": [
"product"
],
"kwargs": {
"condition": "sql_table.template == product.template"
},
"code": "sql_table.join(product,\n condition=sql_table.template == product.template\n )",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 705,
"args": [
"sql_table",
"c"
],
"kwargs": {},
"code": "Column(sql_table, c)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "cursor",
"operation": "execute",
+47
View File
@@ -22,6 +22,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 56,
"args": [
"'production.configuration'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"fields": "fields"
},
"code": "migrate_property(\n 'production.configuration', field_names, cls, value_names,\n fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 49
}
]
}
]
},
@@ -48,6 +73,28 @@
"phase": "before_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 265,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 265,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
+93
View File
@@ -9,6 +9,99 @@
"method": "__register__",
"line": 191,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 192,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 195,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 195,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 202,
"args": [
"'sha1$'",
"Concat(sqltable.password, Concat('$', Coalesce(sqltable.salt, '')))"
],
"kwargs": {},
"code": "Concat('sha1$', Concat(sqltable.password,\n Concat('$', Coalesce(sqltable.salt, ''))))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 202,
"args": [
"sqltable.password",
"Concat('$', Coalesce(sqltable.salt, ''))"
],
"kwargs": {},
"code": "Concat(sqltable.password,\n Concat('$', Coalesce(sqltable.salt, '')))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 203,
"args": [
"'$'",
"Coalesce(sqltable.salt, '')"
],
"kwargs": {},
"code": "Concat('$', Coalesce(sqltable.salt, ''))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 203,
"args": [
"sqltable.salt",
"''"
],
"kwargs": {},
"code": "Coalesce(sqltable.salt, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "cursor",
"operation": "execute",
+182
View File
@@ -9,6 +9,128 @@
"method": "__register__",
"line": 29,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 30,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "connection",
"operation": "cursor",
"tables": [],
"line": 31,
"args": [],
"kwargs": {},
"code": "connection.(connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "config",
"operation": "get",
"tables": [],
"line": 36,
"args": [
"'table'",
"'product.template-stock.lot.type'"
],
"kwargs": {
"default": "'product.template-stock.lot.type'.replace('.', '_')"
},
"code": "config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))",
"unresolved": true,
"phase": "after_super"
},
{
"object": "'product.template-stock.lot.type'",
"operation": "replace",
"tables": [],
"line": 38,
"args": [
"'.'",
"'_'"
],
"kwargs": {},
"code": "'product.template-stock.lot.type' .replace('.', '_')",
"unresolved": true,
"phase": "after_super"
},
{
"object": "config",
"operation": "get",
"tables": [],
"line": 39,
"args": [
"'table'",
"'stock.lot.type'"
],
"kwargs": {
"default": "'stock.lot.type'.replace('.', '_')"
},
"code": "config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))",
"unresolved": true,
"phase": "after_super"
},
{
"object": "'stock.lot.type'",
"operation": "replace",
"tables": [],
"line": 41,
"args": [
"'.'",
"'_'"
],
"kwargs": {},
"code": "'stock.lot.type'.replace('.', '_')",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Table",
"tables": [],
"line": 47,
"args": [
"template_lot_type_table_name"
],
"kwargs": {},
"code": "Table((config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "",
"operation": "Table",
"tables": [],
"line": 48,
"args": [
"lot_type_table_name"
],
"kwargs": {},
"code": "Table((config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "connection",
"operation": "cursor",
"tables": [],
"line": 50,
"args": [],
"kwargs": {},
"code": "connection.(connection.cursor())()",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "cursor_select",
"operation": "execute",
@@ -65,6 +187,36 @@
"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": "join",
"tables": [],
"line": 55,
"args": [
"lot_type"
],
"kwargs": {
"condition": "template_lot_type.type == lot_type.id"
},
"code": "template_lot_type\n .join(lot_type,\n condition=template_lot_type.type == lot_type.id)",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "cls.lot_required",
"operation": "sql_format",
"tables": [],
"line": 61,
"args": [
"[t for t, in cursor]"
],
"kwargs": {},
"code": "cls.lot_required.sql_format([t for t, in (connection.cursor())])",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "cursor",
"operation": "execute",
@@ -97,6 +249,36 @@
"code": "table.update(\n [table.lot_required], [(cls.lot_required.sql_format([t for t, in cursor]))],\n where=table.id == template_id)",
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "table_h",
"operation": "drop_table",
"tables": [],
"line": 65,
"args": [
"'product.template-stock.lot.type'",
"template_lot_type_table_name"
],
"kwargs": {},
"code": "table_h.drop_table('product.template-stock.lot.type',\n (config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
{
"object": "table_h",
"operation": "drop_table",
"tables": [],
"line": 67,
"args": [
"'stock.lot.type'",
"lot_type_table_name"
],
"kwargs": {},
"code": "table_h.drop_table('stock.lot.type', (config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}
]
}