diff --git a/data/5.0.63/company.json b/data/5.0.63/company.json new file mode 100644 index 0000000..b4a9b6b --- /dev/null +++ b/data/5.0.63/company.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/country.json b/data/5.0.63/country.json new file mode 100644 index 0000000..b575611 --- /dev/null +++ b/data/5.0.63/country.json @@ -0,0 +1,48 @@ +{ + "version": "5.0.63", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 29, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 35, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 36, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 39, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.0.63/currency.json b/data/5.0.63/currency.json new file mode 100644 index 0000000..e5e14e6 --- /dev/null +++ b/data/5.0.63/currency.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "currency", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/party.json b/data/5.0.63/party.json new file mode 100644 index 0000000..6139597 --- /dev/null +++ b/data/5.0.63/party.json @@ -0,0 +1,208 @@ +{ + "version": "5.0.63", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 61, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 74, + "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": 74, + "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": 77, + "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": 89, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 95, + "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": 265, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 279, + "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": 281, + "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": 282, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 283, + "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": 329, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 341, + "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": 341, + "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": 355, + "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": 356, + "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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.0.63/product.json b/data/5.0.63/product.json new file mode 100644 index 0000000..8253193 --- /dev/null +++ b/data/5.0.63/product.json @@ -0,0 +1,147 @@ +{ + "version": "5.0.63", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 374, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 396, + "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": 396, + "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": 398, + "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": 429, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 444, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 451, + "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": 451, + "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": 454, + "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": 461, + "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": 461, + "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": 464, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.0.63/product_measurements.json b/data/5.0.63/product_measurements.json new file mode 100644 index 0000000..4d57e1c --- /dev/null +++ b/data/5.0.63/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/production.json b/data/5.0.63/production.json new file mode 100644 index 0000000..b73a6ed --- /dev/null +++ b/data/5.0.63/production.json @@ -0,0 +1,52 @@ +{ + "version": "5.0.63", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 224, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 230, + "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": 236, + "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": 236, + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.0.63/production_split.json b/data/5.0.63/production_split.json new file mode 100644 index 0000000..1e24ea4 --- /dev/null +++ b/data/5.0.63/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/stock_lot.json b/data/5.0.63/stock_lot.json new file mode 100644 index 0000000..a68a64d --- /dev/null +++ b/data/5.0.63/stock_lot.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "stock_lot", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/stock_lot_sled.json b/data/5.0.63/stock_lot_sled.json new file mode 100644 index 0000000..d9b9eca --- /dev/null +++ b/data/5.0.63/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/stock_product_location.json b/data/5.0.63/stock_product_location.json new file mode 100644 index 0000000..0bace17 --- /dev/null +++ b/data/5.0.63/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/5.0.63/stock_split.json b/data/5.0.63/stock_split.json new file mode 100644 index 0000000..77fa169 --- /dev/null +++ b/data/5.0.63/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.0.63", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/company.json b/data/5.2.20/company.json new file mode 100644 index 0000000..bf39d6a --- /dev/null +++ b/data/5.2.20/company.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/country.json b/data/5.2.20/country.json new file mode 100644 index 0000000..84c2eec --- /dev/null +++ b/data/5.2.20/country.json @@ -0,0 +1,48 @@ +{ + "version": "5.2.20", + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.2.20/currency.json b/data/5.2.20/currency.json new file mode 100644 index 0000000..df47f57 --- /dev/null +++ b/data/5.2.20/currency.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "currency", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/party.json b/data/5.2.20/party.json new file mode 100644 index 0000000..99bd361 --- /dev/null +++ b/data/5.2.20/party.json @@ -0,0 +1,208 @@ +{ + "version": "5.2.20", + "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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.2.20/product.json b/data/5.2.20/product.json new file mode 100644 index 0000000..30e6e28 --- /dev/null +++ b/data/5.2.20/product.json @@ -0,0 +1,147 @@ +{ + "version": "5.2.20", + "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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.2.20/product_measurements.json b/data/5.2.20/product_measurements.json new file mode 100644 index 0000000..b097af6 --- /dev/null +++ b/data/5.2.20/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/production.json b/data/5.2.20/production.json new file mode 100644 index 0000000..73a171c --- /dev/null +++ b/data/5.2.20/production.json @@ -0,0 +1,52 @@ +{ + "version": "5.2.20", + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.2.20/production_split.json b/data/5.2.20/production_split.json new file mode 100644 index 0000000..706306c --- /dev/null +++ b/data/5.2.20/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/stock_lot.json b/data/5.2.20/stock_lot.json new file mode 100644 index 0000000..e0b93aa --- /dev/null +++ b/data/5.2.20/stock_lot.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "stock_lot", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/stock_lot_sled.json b/data/5.2.20/stock_lot_sled.json new file mode 100644 index 0000000..dad61b6 --- /dev/null +++ b/data/5.2.20/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/stock_product_location.json b/data/5.2.20/stock_product_location.json new file mode 100644 index 0000000..5b1f08c --- /dev/null +++ b/data/5.2.20/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/5.2.20/stock_split.json b/data/5.2.20/stock_split.json new file mode 100644 index 0000000..85637b0 --- /dev/null +++ b/data/5.2.20/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.2.20", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/company.json b/data/5.4.20/company.json new file mode 100644 index 0000000..e9b26d5 --- /dev/null +++ b/data/5.4.20/company.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/country.json b/data/5.4.20/country.json new file mode 100644 index 0000000..d6d59fa --- /dev/null +++ b/data/5.4.20/country.json @@ -0,0 +1,100 @@ +{ + "version": "5.4.20", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 32, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 43, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 44, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 50, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 50, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 216, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 225, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 225, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/currency.json b/data/5.4.20/currency.json new file mode 100644 index 0000000..cde3230 --- /dev/null +++ b/data/5.4.20/currency.json @@ -0,0 +1,36 @@ +{ + "version": "5.4.20", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 53, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 70, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 70, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/party.json b/data/5.4.20/party.json new file mode 100644 index 0000000..cf85d8f --- /dev/null +++ b/data/5.4.20/party.json @@ -0,0 +1,318 @@ +{ + "version": "5.4.20", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 73, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 86, + "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": 86, + "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": 89, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 271, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 286, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 288, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 291, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 292, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 296, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 298, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 301, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 302, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/product.json b/data/5.4.20/product.json new file mode 100644 index 0000000..1856fdc --- /dev/null +++ b/data/5.4.20/product.json @@ -0,0 +1,147 @@ +{ + "version": "5.4.20", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 439, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 461, + "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": 461, + "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": 463, + "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": 494, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 509, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 516, + "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": 516, + "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": 519, + "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": 526, + "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": 526, + "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": 529, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/product_measurements.json b/data/5.4.20/product_measurements.json new file mode 100644 index 0000000..75cadf6 --- /dev/null +++ b/data/5.4.20/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/production.json b/data/5.4.20/production.json new file mode 100644 index 0000000..0275e9c --- /dev/null +++ b/data/5.4.20/production.json @@ -0,0 +1,52 @@ +{ + "version": "5.4.20", + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/production_split.json b/data/5.4.20/production_split.json new file mode 100644 index 0000000..f4ecaf4 --- /dev/null +++ b/data/5.4.20/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/stock_lot.json b/data/5.4.20/stock_lot.json new file mode 100644 index 0000000..7f0da51 --- /dev/null +++ b/data/5.4.20/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "5.4.20", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 29, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 51, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 51, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.4.20/stock_lot_sled.json b/data/5.4.20/stock_lot_sled.json new file mode 100644 index 0000000..58cd359 --- /dev/null +++ b/data/5.4.20/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/stock_product_location.json b/data/5.4.20/stock_product_location.json new file mode 100644 index 0000000..8b6c44d --- /dev/null +++ b/data/5.4.20/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/5.4.20/stock_split.json b/data/5.4.20/stock_split.json new file mode 100644 index 0000000..4365382 --- /dev/null +++ b/data/5.4.20/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.4.20", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/company.json b/data/5.6.17/company.json new file mode 100644 index 0000000..75f8c22 --- /dev/null +++ b/data/5.6.17/company.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/country.json b/data/5.6.17/country.json new file mode 100644 index 0000000..faec097 --- /dev/null +++ b/data/5.6.17/country.json @@ -0,0 +1,100 @@ +{ + "version": "5.6.17", + "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": 41, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 42, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 45, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 48, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 48, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 214, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 223, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 223, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/currency.json b/data/5.6.17/currency.json new file mode 100644 index 0000000..8788578 --- /dev/null +++ b/data/5.6.17/currency.json @@ -0,0 +1,36 @@ +{ + "version": "5.6.17", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 51, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 68, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 68, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/party.json b/data/5.6.17/party.json new file mode 100644 index 0000000..f827d01 --- /dev/null +++ b/data/5.6.17/party.json @@ -0,0 +1,318 @@ +{ + "version": "5.6.17", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 67, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 80, + "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": 80, + "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": 83, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 265, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 280, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 282, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 285, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 286, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 290, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 292, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 295, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 296, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 81, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 87, + "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": 268, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 281, + "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": 283, + "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": 284, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 285, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 428, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 440, + "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": 440, + "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": 457, + "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": 458, + "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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/product.json b/data/5.6.17/product.json new file mode 100644 index 0000000..357dcb6 --- /dev/null +++ b/data/5.6.17/product.json @@ -0,0 +1,180 @@ +{ + "version": "5.6.17", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 360, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 371, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 371, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 578, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 601, + "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": 601, + "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": 603, + "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": 634, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 648, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 655, + "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": 655, + "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": 658, + "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": 665, + "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": 665, + "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": 668, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/product_measurements.json b/data/5.6.17/product_measurements.json new file mode 100644 index 0000000..f530509 --- /dev/null +++ b/data/5.6.17/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/production.json b/data/5.6.17/production.json new file mode 100644 index 0000000..476fa30 --- /dev/null +++ b/data/5.6.17/production.json @@ -0,0 +1,52 @@ +{ + "version": "5.6.17", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 249, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 255, + "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": 261, + "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": 261, + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/production_split.json b/data/5.6.17/production_split.json new file mode 100644 index 0000000..aac1bce --- /dev/null +++ b/data/5.6.17/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/stock_lot.json b/data/5.6.17/stock_lot.json new file mode 100644 index 0000000..1c6a9e3 --- /dev/null +++ b/data/5.6.17/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "5.6.17", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 29, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 51, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 51, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.6.17/stock_lot_sled.json b/data/5.6.17/stock_lot_sled.json new file mode 100644 index 0000000..42e49ad --- /dev/null +++ b/data/5.6.17/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/stock_product_location.json b/data/5.6.17/stock_product_location.json new file mode 100644 index 0000000..40991b2 --- /dev/null +++ b/data/5.6.17/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/5.6.17/stock_split.json b/data/5.6.17/stock_split.json new file mode 100644 index 0000000..8b87cda --- /dev/null +++ b/data/5.6.17/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.6.17", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.8.16/company.json b/data/5.8.16/company.json new file mode 100644 index 0000000..d0b3fa0 --- /dev/null +++ b/data/5.8.16/company.json @@ -0,0 +1,5 @@ +{ + "version": "5.8.16", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/5.8.16/country.json b/data/5.8.16/country.json new file mode 100644 index 0000000..731be5d --- /dev/null +++ b/data/5.8.16/country.json @@ -0,0 +1,100 @@ +{ + "version": "5.8.16", + "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": 41, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 42, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 45, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 48, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 48, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 214, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 223, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 223, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/currency.json b/data/5.8.16/currency.json new file mode 100644 index 0000000..8de2df3 --- /dev/null +++ b/data/5.8.16/currency.json @@ -0,0 +1,36 @@ +{ + "version": "5.8.16", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 51, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 68, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 68, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/party.json b/data/5.8.16/party.json new file mode 100644 index 0000000..74e0402 --- /dev/null +++ b/data/5.8.16/party.json @@ -0,0 +1,318 @@ +{ + "version": "5.8.16", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 67, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 80, + "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": 80, + "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": 83, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 265, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 280, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 282, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 285, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 286, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 290, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 292, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 295, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 296, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 81, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 87, + "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": 270, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 283, + "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": 285, + "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": 286, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 287, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 445, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 457, + "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": 457, + "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": 474, + "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": 475, + "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')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/product.json b/data/5.8.16/product.json new file mode 100644 index 0000000..639d5b6 --- /dev/null +++ b/data/5.8.16/product.json @@ -0,0 +1,180 @@ +{ + "version": "5.8.16", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 401, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 412, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 412, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 622, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 645, + "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": 645, + "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": 647, + "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": 678, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 692, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 699, + "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": 699, + "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": 702, + "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": 709, + "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": 709, + "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": 712, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/product_measurements.json b/data/5.8.16/product_measurements.json new file mode 100644 index 0000000..75d8066 --- /dev/null +++ b/data/5.8.16/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "5.8.16", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/5.8.16/production.json b/data/5.8.16/production.json new file mode 100644 index 0000000..0e843da --- /dev/null +++ b/data/5.8.16/production.json @@ -0,0 +1,77 @@ +{ + "version": "5.8.16", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 254, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 260, + "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": 266, + "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": 266, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 273, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 273, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/production_split.json b/data/5.8.16/production_split.json new file mode 100644 index 0000000..f061d6b --- /dev/null +++ b/data/5.8.16/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.8.16", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/5.8.16/stock_lot.json b/data/5.8.16/stock_lot.json new file mode 100644 index 0000000..4d214c0 --- /dev/null +++ b/data/5.8.16/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "5.8.16", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 29, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 51, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 51, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/stock_lot_sled.json b/data/5.8.16/stock_lot_sled.json new file mode 100644 index 0000000..b3d2a90 --- /dev/null +++ b/data/5.8.16/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "5.8.16", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/5.8.16/stock_product_location.json b/data/5.8.16/stock_product_location.json new file mode 100644 index 0000000..231025c --- /dev/null +++ b/data/5.8.16/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "5.8.16", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 49, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/5.8.16/stock_split.json b/data/5.8.16/stock_split.json new file mode 100644 index 0000000..6387555 --- /dev/null +++ b/data/5.8.16/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "5.8.16", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.0.76/company.json b/data/6.0.76/company.json new file mode 100644 index 0000000..3959e6a --- /dev/null +++ b/data/6.0.76/company.json @@ -0,0 +1,106 @@ +{ + "version": "6.0.76", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 86, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 86, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 88, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 91, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 91, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 93, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 97, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/country.json b/data/6.0.76/country.json new file mode 100644 index 0000000..0b42342 --- /dev/null +++ b/data/6.0.76/country.json @@ -0,0 +1,120 @@ +{ + "version": "6.0.76", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 31, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 42, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 43, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 46, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 49, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 49, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 219, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 228, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 228, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 287, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 291, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/currency.json b/data/6.0.76/currency.json new file mode 100644 index 0000000..7719dcd --- /dev/null +++ b/data/6.0.76/currency.json @@ -0,0 +1,36 @@ +{ + "version": "6.0.76", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 59, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 76, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 76, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/party.json b/data/6.0.76/party.json new file mode 100644 index 0000000..22461e3 --- /dev/null +++ b/data/6.0.76/party.json @@ -0,0 +1,355 @@ +{ + "version": "6.0.76", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 67, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 73, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 84, + "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": 84, + "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": 87, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 278, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 293, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 295, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 298, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 299, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 303, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 305, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 308, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 309, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 84, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 90, + "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": 322, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 335, + "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": 337, + "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": 338, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 339, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 515, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 528, + "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": 528, + "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": 545, + "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": 546, + "args": [ + "'vat_country'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_country')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 549, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 549, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/product.json b/data/6.0.76/product.json new file mode 100644 index 0000000..b9c83c6 --- /dev/null +++ b/data/6.0.76/product.json @@ -0,0 +1,180 @@ +{ + "version": "6.0.76", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 416, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 427, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 427, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 647, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 670, + "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": 670, + "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": 672, + "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": 707, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 721, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 728, + "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": 728, + "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": 731, + "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": 738, + "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": 738, + "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": 741, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/product_measurements.json b/data/6.0.76/product_measurements.json new file mode 100644 index 0000000..e751ca9 --- /dev/null +++ b/data/6.0.76/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "6.0.76", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/6.0.76/production.json b/data/6.0.76/production.json new file mode 100644 index 0000000..c92b913 --- /dev/null +++ b/data/6.0.76/production.json @@ -0,0 +1,77 @@ +{ + "version": "6.0.76", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 264, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 270, + "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": 276, + "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": 276, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 283, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 283, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/production_split.json b/data/6.0.76/production_split.json new file mode 100644 index 0000000..4edeca1 --- /dev/null +++ b/data/6.0.76/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.0.76", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.0.76/stock_lot.json b/data/6.0.76/stock_lot.json new file mode 100644 index 0000000..29029ee --- /dev/null +++ b/data/6.0.76/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "6.0.76", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 65, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 87, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 87, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/stock_lot_sled.json b/data/6.0.76/stock_lot_sled.json new file mode 100644 index 0000000..b26b672 --- /dev/null +++ b/data/6.0.76/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "6.0.76", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/6.0.76/stock_product_location.json b/data/6.0.76/stock_product_location.json new file mode 100644 index 0000000..3679528 --- /dev/null +++ b/data/6.0.76/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "6.0.76", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 49, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.0.76/stock_split.json b/data/6.0.76/stock_split.json new file mode 100644 index 0000000..e7c12de --- /dev/null +++ b/data/6.0.76/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.0.76", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.2.14/company.json b/data/6.2.14/company.json new file mode 100644 index 0000000..dfaf662 --- /dev/null +++ b/data/6.2.14/company.json @@ -0,0 +1,106 @@ +{ + "version": "6.2.14", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 86, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 86, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 88, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 91, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 91, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 93, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 97, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/country.json b/data/6.2.14/country.json new file mode 100644 index 0000000..157e089 --- /dev/null +++ b/data/6.2.14/country.json @@ -0,0 +1,120 @@ +{ + "version": "6.2.14", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 31, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 42, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 43, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 46, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 49, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 49, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 219, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 228, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 228, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 287, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 291, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/currency.json b/data/6.2.14/currency.json new file mode 100644 index 0000000..1d0c24b --- /dev/null +++ b/data/6.2.14/currency.json @@ -0,0 +1,36 @@ +{ + "version": "6.2.14", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 61, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 78, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 78, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/party.json b/data/6.2.14/party.json new file mode 100644 index 0000000..be006bf --- /dev/null +++ b/data/6.2.14/party.json @@ -0,0 +1,355 @@ +{ + "version": "6.2.14", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 67, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 73, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 84, + "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": 84, + "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": 87, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 271, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 286, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 288, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 291, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 292, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 296, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 298, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 301, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 302, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 103, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 109, + "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": 357, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 370, + "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": 372, + "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": 373, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 374, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 625, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 638, + "args": [ + "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party", + "operation": "select", + "line": 638, + "args": [ + "party.id", + "party.vat_number", + "party.vat_country" + ], + "kwargs": { + "where": "(party.vat_number != Null) | (party.vat_country != Null)" + }, + "code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 655, + "args": [ + "'vat_number'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_number')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 656, + "args": [ + "'vat_country'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_country')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 659, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 659, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/product.json b/data/6.2.14/product.json new file mode 100644 index 0000000..5485922 --- /dev/null +++ b/data/6.2.14/product.json @@ -0,0 +1,180 @@ +{ + "version": "6.2.14", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 432, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 443, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 443, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 677, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 700, + "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": 700, + "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": 702, + "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": 742, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 756, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 763, + "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": 763, + "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": 766, + "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": 773, + "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": 773, + "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": 776, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/product_measurements.json b/data/6.2.14/product_measurements.json new file mode 100644 index 0000000..7401e2f --- /dev/null +++ b/data/6.2.14/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "6.2.14", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/6.2.14/production.json b/data/6.2.14/production.json new file mode 100644 index 0000000..0ec343b --- /dev/null +++ b/data/6.2.14/production.json @@ -0,0 +1,96 @@ +{ + "version": "6.2.14", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 70, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 75, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 265, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 271, + "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": 277, + "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": 277, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 284, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 284, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/production_split.json b/data/6.2.14/production_split.json new file mode 100644 index 0000000..46f99ac --- /dev/null +++ b/data/6.2.14/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.2.14", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.2.14/stock_lot.json b/data/6.2.14/stock_lot.json new file mode 100644 index 0000000..0b7bbe1 --- /dev/null +++ b/data/6.2.14/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "6.2.14", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 62, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 84, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 84, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/stock_lot_sled.json b/data/6.2.14/stock_lot_sled.json new file mode 100644 index 0000000..d5ed24d --- /dev/null +++ b/data/6.2.14/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "6.2.14", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/6.2.14/stock_product_location.json b/data/6.2.14/stock_product_location.json new file mode 100644 index 0000000..07a004b --- /dev/null +++ b/data/6.2.14/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "6.2.14", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 49, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.2.14/stock_split.json b/data/6.2.14/stock_split.json new file mode 100644 index 0000000..8bc5f3b --- /dev/null +++ b/data/6.2.14/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.2.14", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.4.16/company.json b/data/6.4.16/company.json new file mode 100644 index 0000000..994d206 --- /dev/null +++ b/data/6.4.16/company.json @@ -0,0 +1,106 @@ +{ + "version": "6.4.16", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 69, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 83, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 83, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 85, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 88, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 88, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 90, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 94, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/country.json b/data/6.4.16/country.json new file mode 100644 index 0000000..c9a359c --- /dev/null +++ b/data/6.4.16/country.json @@ -0,0 +1,133 @@ +{ + "version": "6.4.16", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 31, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 42, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 43, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 46, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 49, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 49, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 256, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 267, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 267, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 271, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 328, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 332, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/currency.json b/data/6.4.16/currency.json new file mode 100644 index 0000000..e4f82dc --- /dev/null +++ b/data/6.4.16/currency.json @@ -0,0 +1,36 @@ +{ + "version": "6.4.16", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 59, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 76, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 76, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/party.json b/data/6.4.16/party.json new file mode 100644 index 0000000..6f1f555 --- /dev/null +++ b/data/6.4.16/party.json @@ -0,0 +1,355 @@ +{ + "version": "6.4.16", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 76, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 82, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 93, + "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": 93, + "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": 96, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 295, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 310, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 312, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 315, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 316, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 320, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 322, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 325, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 326, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 102, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 108, + "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": 356, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 369, + "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": 371, + "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": 372, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 373, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 636, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 649, + "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": 649, + "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": 666, + "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": 667, + "args": [ + "'vat_country'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_country')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 670, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 670, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/product.json b/data/6.4.16/product.json new file mode 100644 index 0000000..aea8d8a --- /dev/null +++ b/data/6.4.16/product.json @@ -0,0 +1,180 @@ +{ + "version": "6.4.16", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 424, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 435, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 435, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 669, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 692, + "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": 692, + "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": 694, + "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": 734, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 748, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 755, + "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": 755, + "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": 758, + "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": 765, + "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": 765, + "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": 768, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/product_measurements.json b/data/6.4.16/product_measurements.json new file mode 100644 index 0000000..2e88b22 --- /dev/null +++ b/data/6.4.16/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "6.4.16", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/6.4.16/production.json b/data/6.4.16/production.json new file mode 100644 index 0000000..3120748 --- /dev/null +++ b/data/6.4.16/production.json @@ -0,0 +1,96 @@ +{ + "version": "6.4.16", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 70, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 75, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 250, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 256, + "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": 262, + "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": 262, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 269, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 269, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/production_split.json b/data/6.4.16/production_split.json new file mode 100644 index 0000000..7d461e2 --- /dev/null +++ b/data/6.4.16/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.4.16", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.4.16/stock_lot.json b/data/6.4.16/stock_lot.json new file mode 100644 index 0000000..8f4ecf2 --- /dev/null +++ b/data/6.4.16/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "6.4.16", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 60, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 82, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 82, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/stock_lot_sled.json b/data/6.4.16/stock_lot_sled.json new file mode 100644 index 0000000..e60cfab --- /dev/null +++ b/data/6.4.16/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "6.4.16", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/6.4.16/stock_product_location.json b/data/6.4.16/stock_product_location.json new file mode 100644 index 0000000..f0a3b2f --- /dev/null +++ b/data/6.4.16/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "6.4.16", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.4.16/stock_split.json b/data/6.4.16/stock_split.json new file mode 100644 index 0000000..004e367 --- /dev/null +++ b/data/6.4.16/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.4.16", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.6.14/company.json b/data/6.6.14/company.json new file mode 100644 index 0000000..da37131 --- /dev/null +++ b/data/6.6.14/company.json @@ -0,0 +1,106 @@ +{ + "version": "6.6.14", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 69, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 83, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 83, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 85, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 88, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 88, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 90, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 94, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/country.json b/data/6.6.14/country.json new file mode 100644 index 0000000..0a898b6 --- /dev/null +++ b/data/6.6.14/country.json @@ -0,0 +1,146 @@ +{ + "version": "6.6.14", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 178, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 189, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 190, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 193, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 196, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 196, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 433, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 444, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 444, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 448, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 451, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 516, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 520, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/currency.json b/data/6.6.14/currency.json new file mode 100644 index 0000000..f96a853 --- /dev/null +++ b/data/6.6.14/currency.json @@ -0,0 +1,36 @@ +{ + "version": "6.6.14", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 60, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 77, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 77, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/party.json b/data/6.6.14/party.json new file mode 100644 index 0000000..c861ab1 --- /dev/null +++ b/data/6.6.14/party.json @@ -0,0 +1,355 @@ +{ + "version": "6.6.14", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 85, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 91, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 102, + "args": [ + "*sql_table.update([sql_table.street], [value])" + ], + "kwargs": {}, + "code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + }, + { + "object": "sql_table", + "operation": "update", + "line": 102, + "args": [ + "[sql_table.street]", + "[value]" + ], + "kwargs": {}, + "code": "sql_table.update([sql_table.street], [value])", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + }, + { + "object": "table", + "operation": "drop_column", + "line": 105, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 312, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 327, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 329, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 332, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 333, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 337, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 339, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 342, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 343, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 110, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 116, + "args": [ + "'name'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('name', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 345, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 358, + "args": [ + "[table.party, table.lang]", + "party.select(party.id, party.lang)" + ], + "kwargs": {}, + "code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party", + "operation": "select", + "line": 360, + "args": [ + "party.id", + "party.lang" + ], + "kwargs": {}, + "code": "party.select(party.id, party.lang)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 361, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 362, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 625, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 638, + "args": [ + "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party", + "operation": "select", + "line": 638, + "args": [ + "party.id", + "party.vat_number", + "party.vat_country" + ], + "kwargs": { + "where": "(party.vat_number != Null) | (party.vat_country != Null)" + }, + "code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 655, + "args": [ + "'vat_number'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_number')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 656, + "args": [ + "'vat_country'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_country')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 659, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 659, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/product.json b/data/6.6.14/product.json new file mode 100644 index 0000000..3be604f --- /dev/null +++ b/data/6.6.14/product.json @@ -0,0 +1,180 @@ +{ + "version": "6.6.14", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 444, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 455, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 455, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 708, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 730, + "args": [ + "*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))" + ], + "kwargs": {}, + "code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))", + "phase": "after_super", + "condition": "cost_price_table.column_exist('template')" + }, + { + "object": "sql_table", + "operation": "insert", + "line": 730, + "args": [], + "kwargs": { + "columns": "[Column(sql_table, c) for c in columns]", + "values": "cost_price.select(*[Column(cost_price, c) for c in columns])" + }, + "code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))", + "phase": "after_super", + "condition": "cost_price_table.column_exist('template')" + }, + { + "object": "cost_price", + "operation": "select", + "line": 732, + "args": [ + "*[Column(cost_price, c) for c in columns]" + ], + "kwargs": {}, + "code": "cost_price.select(*[Column(cost_price, c) for c in columns])", + "phase": "after_super", + "condition": "cost_price_table.column_exist('template')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPrice", + "method": "__register__", + "line": 772, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 786, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "line": 793, + "args": [ + "*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))" + ], + "kwargs": {}, + "code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))", + "phase": "after_super", + "condition": "table.column_exist('template')" + }, + { + "object": "sql_table", + "operation": "insert", + "line": 793, + "args": [], + "kwargs": { + "columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]", + "values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))" + }, + "code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))", + "phase": "after_super", + "condition": "table.column_exist('template')" + }, + { + "object": "sql_table.join(product, condition=sql_table.template == product.template)", + "operation": "select", + "line": 796, + "args": [ + "*[Column(sql_table, c) for c in columns] + [product.id]" + ], + "kwargs": { + "where": "(sql_table.template != Null) & (sql_table.product == Null)" + }, + "code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))", + "phase": "after_super", + "condition": "table.column_exist('template')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 803, + "args": [ + "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))", + "phase": "after_super", + "condition": "table.column_exist('template')" + }, + { + "object": "sql_table", + "operation": "delete", + "line": 803, + "args": [], + "kwargs": { + "where": "(sql_table.template != Null) & (sql_table.product == Null)" + }, + "code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))", + "phase": "after_super", + "condition": "table.column_exist('template')" + }, + { + "object": "table", + "operation": "drop_column", + "line": 806, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/product_measurements.json b/data/6.6.14/product_measurements.json new file mode 100644 index 0000000..36d6f11 --- /dev/null +++ b/data/6.6.14/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "6.6.14", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/6.6.14/production.json b/data/6.6.14/production.json new file mode 100644 index 0000000..a3d56d7 --- /dev/null +++ b/data/6.6.14/production.json @@ -0,0 +1,96 @@ +{ + "version": "6.6.14", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 70, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 75, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 266, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 272, + "args": [ + "'code'", + "'number'" + ], + "kwargs": {}, + "code": "table_h.column_rename('code', 'number')", + "phase": "before_super", + "condition": "table_h.column_exist('code')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 278, + "args": [ + "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 278, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 285, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 285, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/production_split.json b/data/6.6.14/production_split.json new file mode 100644 index 0000000..ca56072 --- /dev/null +++ b/data/6.6.14/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.6.14", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.6.14/stock_lot.json b/data/6.6.14/stock_lot.json new file mode 100644 index 0000000..f52c53a --- /dev/null +++ b/data/6.6.14/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "6.6.14", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 60, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 82, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 82, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/stock_lot_sled.json b/data/6.6.14/stock_lot_sled.json new file mode 100644 index 0000000..57955da --- /dev/null +++ b/data/6.6.14/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "6.6.14", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/6.6.14/stock_product_location.json b/data/6.6.14/stock_product_location.json new file mode 100644 index 0000000..821c38b --- /dev/null +++ b/data/6.6.14/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "6.6.14", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.6.14/stock_split.json b/data/6.6.14/stock_split.json new file mode 100644 index 0000000..eb2bb41 --- /dev/null +++ b/data/6.6.14/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.6.14", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.8.17/company.json b/data/6.8.17/company.json new file mode 100644 index 0000000..9a6bc84 --- /dev/null +++ b/data/6.8.17/company.json @@ -0,0 +1,106 @@ +{ + "version": "6.8.17", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 69, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 83, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 83, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 85, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 88, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 88, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 90, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 94, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/country.json b/data/6.8.17/country.json new file mode 100644 index 0000000..4830ed3 --- /dev/null +++ b/data/6.8.17/country.json @@ -0,0 +1,146 @@ +{ + "version": "6.8.17", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 178, + "operations": [ + { + "object": "table", + "operation": "drop_constraint", + "line": 189, + "args": [ + "'name_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('name_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "drop_constraint", + "line": 190, + "args": [ + "'code_uniq'" + ], + "kwargs": {}, + "code": "table.drop_constraint('code_uniq')", + "phase": "after_super" + }, + { + "object": "table", + "operation": "not_null_action", + "line": 193, + "args": [ + "'code'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('code', 'remove')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 196, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 196, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 433, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 444, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 444, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 448, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 451, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 516, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 520, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/currency.json b/data/6.8.17/currency.json new file mode 100644 index 0000000..33ea3fc --- /dev/null +++ b/data/6.8.17/currency.json @@ -0,0 +1,48 @@ +{ + "version": "6.8.17", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 89, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 89, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 93, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/party.json b/data/6.8.17/party.json new file mode 100644 index 0000000..d7a0d28 --- /dev/null +++ b/data/6.8.17/party.json @@ -0,0 +1,355 @@ +{ + "version": "6.8.17", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 85, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 91, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 102, + "args": [ + "*sql_table.update([sql_table.street], [value])" + ], + "kwargs": {}, + "code": "cursor.execute(*sql_table.update([sql_table.street], [value]))", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + }, + { + "object": "sql_table", + "operation": "update", + "line": 102, + "args": [ + "[sql_table.street]", + "[value]" + ], + "kwargs": {}, + "code": "sql_table.update([sql_table.street], [value])", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + }, + { + "object": "table", + "operation": "drop_column", + "line": 105, + "args": [ + "'streetbis'" + ], + "kwargs": {}, + "code": "table.drop_column('streetbis')", + "phase": "after_super", + "condition": "table.column_exist('streetbis')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 312, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 327, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 329, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 332, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 333, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 337, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 339, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 342, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 343, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/category.py", + "class": "Category", + "method": "__register__", + "line": 35, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 41, + "args": [ + "'name_parent_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('name_parent_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Party", + "method": "__register__", + "line": 110, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 116, + "args": [ + "'name'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('name', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 345, + "operations": [ + { + "object": "table", + "operation": "insert", + "line": 358, + "args": [ + "[table.party, table.lang]", + "party.select(party.id, party.lang)" + ], + "kwargs": {}, + "code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party", + "operation": "select", + "line": 360, + "args": [ + "party.id", + "party.lang" + ], + "kwargs": {}, + "code": "party.select(party.id, party.lang)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 361, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 362, + "args": [ + "'lang'" + ], + "kwargs": {}, + "code": "party_h.drop_column('lang')", + "phase": "after_super", + "condition": "party_h.column_exist('lang')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 625, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 638, + "args": [ + "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party", + "operation": "select", + "line": 638, + "args": [ + "party.id", + "party.vat_number", + "party.vat_country" + ], + "kwargs": { + "where": "(party.vat_number != Null) | (party.vat_country != Null)" + }, + "code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 655, + "args": [ + "'vat_number'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_number')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "party_h", + "operation": "drop_column", + "line": 656, + "args": [ + "'vat_country'" + ], + "kwargs": {}, + "code": "party_h.drop_column('vat_country')", + "phase": "after_super", + "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 659, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 659, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/product.json b/data/6.8.17/product.json new file mode 100644 index 0000000..9db78d2 --- /dev/null +++ b/data/6.8.17/product.json @@ -0,0 +1,180 @@ +{ + "version": "6.8.17", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 447, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 458, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 458, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductCostPriceMethod", + "method": "__register__", + "line": 732, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "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]))" + ], + "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": 754, + "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": 756, + "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": 796, + "operations": [ + { + "object": "table", + "operation": "add_column", + "line": 810, + "args": [ + "'template'", + "'INTEGER'" + ], + "kwargs": {}, + "code": "table.add_column('template', 'INTEGER')", + "phase": "after_super", + "condition": "not exist" + }, + { + "object": "cursor", + "operation": "execute", + "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)))" + ], + "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": 817, + "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": 820, + "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": 827, + "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": 827, + "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": 830, + "args": [ + "'template'" + ], + "kwargs": {}, + "code": "table.drop_column('template')", + "phase": "after_super", + "condition": "table.column_exist('template')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/product_measurements.json b/data/6.8.17/product_measurements.json new file mode 100644 index 0000000..340a62d --- /dev/null +++ b/data/6.8.17/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "6.8.17", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/6.8.17/production.json b/data/6.8.17/production.json new file mode 100644 index 0000000..d449d2f --- /dev/null +++ b/data/6.8.17/production.json @@ -0,0 +1,96 @@ +{ + "version": "6.8.17", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 70, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 75, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 263, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 269, + "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": 275, + "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": 275, + "args": [ + "[table.planned_start_date]", + "[table.planned_date]" + ], + "kwargs": { + "where": "(table.planned_start_date == Null) & (table.planned_date != Null)" + }, + "code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 282, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 282, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/production_split.json b/data/6.8.17/production_split.json new file mode 100644 index 0000000..38e1f2b --- /dev/null +++ b/data/6.8.17/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.8.17", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/6.8.17/stock_lot.json b/data/6.8.17/stock_lot.json new file mode 100644 index 0000000..2eab7d5 --- /dev/null +++ b/data/6.8.17/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "6.8.17", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 63, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 85, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 85, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/stock_lot_sled.json b/data/6.8.17/stock_lot_sled.json new file mode 100644 index 0000000..d180e26 --- /dev/null +++ b/data/6.8.17/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "6.8.17", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/6.8.17/stock_product_location.json b/data/6.8.17/stock_product_location.json new file mode 100644 index 0000000..5a19352 --- /dev/null +++ b/data/6.8.17/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "6.8.17", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/6.8.17/stock_split.json b/data/6.8.17/stock_split.json new file mode 100644 index 0000000..fee12e6 --- /dev/null +++ b/data/6.8.17/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "6.8.17", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.0.55/company.json b/data/7.0.55/company.json new file mode 100644 index 0000000..9aad01b --- /dev/null +++ b/data/7.0.55/company.json @@ -0,0 +1,106 @@ +{ + "version": "7.0.55", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 116, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 130, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 130, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 132, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 135, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 135, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 137, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 141, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/country.json b/data/7.0.55/country.json new file mode 100644 index 0000000..2870606 --- /dev/null +++ b/data/7.0.55/country.json @@ -0,0 +1,112 @@ +{ + "version": "7.0.55", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 178, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 187, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 187, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 424, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 435, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 435, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 439, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 442, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 507, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 511, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/currency.json b/data/7.0.55/currency.json new file mode 100644 index 0000000..730ce11 --- /dev/null +++ b/data/7.0.55/currency.json @@ -0,0 +1,48 @@ +{ + "version": "7.0.55", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 83, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 83, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 87, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/party.json b/data/7.0.55/party.json new file mode 100644 index 0000000..d9de2dd --- /dev/null +++ b/data/7.0.55/party.json @@ -0,0 +1,202 @@ +{ + "version": "7.0.55", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 84, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 88, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 303, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 318, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 320, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 323, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 324, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 328, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 330, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 333, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 334, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "Configuration", + "method": "__register__", + "line": 34, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 45, + "args": [ + "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + }, + { + "object": "table", + "operation": "update", + "line": 45, + "args": [ + "[table.identifier_types]", + "[cls.identifier_types.sql_format(identifier_types)]" + ], + "kwargs": {}, + "code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 780, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 787, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 787, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/product.json b/data/7.0.55/product.json new file mode 100644 index 0000000..80c747c --- /dev/null +++ b/data/7.0.55/product.json @@ -0,0 +1,39 @@ +{ + "version": "7.0.55", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 494, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 505, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 505, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/product_measurements.json b/data/7.0.55/product_measurements.json new file mode 100644 index 0000000..796e8bb --- /dev/null +++ b/data/7.0.55/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "7.0.55", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/7.0.55/production.json b/data/7.0.55/production.json new file mode 100644 index 0000000..9d6a9a6 --- /dev/null +++ b/data/7.0.55/production.json @@ -0,0 +1,84 @@ +{ + "version": "7.0.55", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 78, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 84, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 264, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 270, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "cursor", + "operation": "execute", + "line": 278, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 278, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/production_split.json b/data/7.0.55/production_split.json new file mode 100644 index 0000000..a194842 --- /dev/null +++ b/data/7.0.55/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.0.55", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.0.55/stock_lot.json b/data/7.0.55/stock_lot.json new file mode 100644 index 0000000..38cb6e3 --- /dev/null +++ b/data/7.0.55/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "7.0.55", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 63, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 85, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 85, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/stock_lot_sled.json b/data/7.0.55/stock_lot_sled.json new file mode 100644 index 0000000..b271953 --- /dev/null +++ b/data/7.0.55/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "7.0.55", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/7.0.55/stock_product_location.json b/data/7.0.55/stock_product_location.json new file mode 100644 index 0000000..3a2152e --- /dev/null +++ b/data/7.0.55/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "7.0.55", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.0.55/stock_split.json b/data/7.0.55/stock_split.json new file mode 100644 index 0000000..709d312 --- /dev/null +++ b/data/7.0.55/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.0.55", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.2.23/company.json b/data/7.2.23/company.json new file mode 100644 index 0000000..98bdc01 --- /dev/null +++ b/data/7.2.23/company.json @@ -0,0 +1,106 @@ +{ + "version": "7.2.23", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 116, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 130, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 130, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 132, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 135, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 135, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 137, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 141, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/country.json b/data/7.2.23/country.json new file mode 100644 index 0000000..7961be1 --- /dev/null +++ b/data/7.2.23/country.json @@ -0,0 +1,112 @@ +{ + "version": "7.2.23", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 178, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 187, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 187, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 424, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 435, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 435, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 439, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 442, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 507, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 511, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/currency.json b/data/7.2.23/currency.json new file mode 100644 index 0000000..6713d2c --- /dev/null +++ b/data/7.2.23/currency.json @@ -0,0 +1,48 @@ +{ + "version": "7.2.23", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 83, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 83, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 87, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/party.json b/data/7.2.23/party.json new file mode 100644 index 0000000..885e64e --- /dev/null +++ b/data/7.2.23/party.json @@ -0,0 +1,202 @@ +{ + "version": "7.2.23", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 84, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 88, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 303, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 318, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 320, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 323, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 324, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 328, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 330, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 333, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 334, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "Configuration", + "method": "__register__", + "line": 34, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 45, + "args": [ + "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + }, + { + "object": "table", + "operation": "update", + "line": 45, + "args": [ + "[table.identifier_types]", + "[cls.identifier_types.sql_format(identifier_types)]" + ], + "kwargs": {}, + "code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 805, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 812, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 812, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/product.json b/data/7.2.23/product.json new file mode 100644 index 0000000..a957dd8 --- /dev/null +++ b/data/7.2.23/product.json @@ -0,0 +1,39 @@ +{ + "version": "7.2.23", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 477, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 488, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 488, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/product_measurements.json b/data/7.2.23/product_measurements.json new file mode 100644 index 0000000..d97ce41 --- /dev/null +++ b/data/7.2.23/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "7.2.23", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/7.2.23/production.json b/data/7.2.23/production.json new file mode 100644 index 0000000..f03957b --- /dev/null +++ b/data/7.2.23/production.json @@ -0,0 +1,117 @@ +{ + "version": "7.2.23", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 72, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 78, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 84, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/ir.py", + "class": "Cron", + "method": "__register__", + "line": 19, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 26, + "args": [ + "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 26, + "args": [ + "[table.method]", + "['ir.cron|stock_shipment_assign_try']" + ], + "kwargs": { + "where": "table.method == 'production|assign_cron'" + }, + "code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 265, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 271, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "cursor", + "operation": "execute", + "line": 279, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 279, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/production_split.json b/data/7.2.23/production_split.json new file mode 100644 index 0000000..d346d0c --- /dev/null +++ b/data/7.2.23/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.2.23", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.2.23/stock_lot.json b/data/7.2.23/stock_lot.json new file mode 100644 index 0000000..abf587c --- /dev/null +++ b/data/7.2.23/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "7.2.23", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 63, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 85, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 85, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/stock_lot_sled.json b/data/7.2.23/stock_lot_sled.json new file mode 100644 index 0000000..e0199af --- /dev/null +++ b/data/7.2.23/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "7.2.23", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/7.2.23/stock_product_location.json b/data/7.2.23/stock_product_location.json new file mode 100644 index 0000000..f415c88 --- /dev/null +++ b/data/7.2.23/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "7.2.23", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.2.23/stock_split.json b/data/7.2.23/stock_split.json new file mode 100644 index 0000000..464caac --- /dev/null +++ b/data/7.2.23/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.2.23", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.4.25/company.json b/data/7.4.25/company.json new file mode 100644 index 0000000..b449c25 --- /dev/null +++ b/data/7.4.25/company.json @@ -0,0 +1,106 @@ +{ + "version": "7.4.25", + "module": "company", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/res.py", + "class": "User", + "method": "__register__", + "line": 125, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 139, + "args": [ + "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 139, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.main_company, where=table.main_company != Null)" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 141, + "args": [ + "table.id", + "table.main_company" + ], + "kwargs": { + "where": "table.main_company != Null" + }, + "code": "table.select(table.id, table.main_company, where=table.main_company != Null)", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 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)))" + ], + "kwargs": {}, + "code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "user_company", + "operation": "insert", + "line": 144, + "args": [ + "[user_company.user, user_company.company]", + "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))" + ], + "kwargs": {}, + "code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table", + "operation": "select", + "line": 146, + "args": [ + "table.id", + "table.company" + ], + "kwargs": { + "where": "(table.company != Null) & (table.company != table.main_company)" + }, + "code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 150, + "args": [ + "'main_company'" + ], + "kwargs": {}, + "code": "table_h.drop_column('main_company')", + "phase": "after_super", + "condition": "table_h.column_exist('main_company')" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/country.json b/data/7.4.25/country.json new file mode 100644 index 0000000..7a6ea6e --- /dev/null +++ b/data/7.4.25/country.json @@ -0,0 +1,112 @@ +{ + "version": "7.4.25", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Country", + "method": "__register__", + "line": 178, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 187, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 187, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 424, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 435, + "args": [ + "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 435, + "args": [], + "kwargs": { + "where": "(data.module == 'country') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 439, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 442, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "PostalCode", + "method": "__register__", + "line": 507, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 511, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table_h.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/currency.json b/data/7.4.25/currency.json new file mode 100644 index 0000000..b07fba2 --- /dev/null +++ b/data/7.4.25/currency.json @@ -0,0 +1,67 @@ +{ + "version": "7.4.25", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 78, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 89, + "args": [ + "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" + ], + "kwargs": {}, + "code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))", + "phase": "after_super" + }, + { + "object": "data", + "operation": "delete", + "line": 89, + "args": [], + "kwargs": { + "where": "(data.module == 'currency') & (data.model == cls.__name__)" + }, + "code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 93, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "CurrencyRate", + "method": "__register__", + "line": 304, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 309, + "args": [ + "'check_currency_rate'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('check_currency_rate')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/party.json b/data/7.4.25/party.json new file mode 100644 index 0000000..349793e --- /dev/null +++ b/data/7.4.25/party.json @@ -0,0 +1,227 @@ +{ + "version": "7.4.25", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 84, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 88, + "args": [ + "'zip'", + "'postal_code'" + ], + "kwargs": {}, + "code": "table.column_rename('zip', 'postal_code')", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "AddressFormat", + "method": "__register__", + "line": 303, + "operations": [ + { + "object": "table", + "operation": "update", + "line": 318, + "args": [ + "[table.country_code]", + "country.select(country.code, where=country.id == table.country)" + ], + "kwargs": {}, + "code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "country", + "operation": "select", + "line": 320, + "args": [ + "country.code" + ], + "kwargs": { + "where": "country.id == table.country" + }, + "code": "country.select(country.code, where=country.id == table.country)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 323, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 324, + "args": [ + "'country'" + ], + "kwargs": {}, + "code": "table_h.drop_column('country')", + "phase": "after_super", + "condition": "table_h.column_exist('country')" + }, + { + "object": "table", + "operation": "update", + "line": 328, + "args": [ + "[table.language_code]", + "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" + ], + "kwargs": {}, + "code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "language", + "operation": "select", + "line": 330, + "args": [ + "Substring(language.code, 0, 2)" + ], + "kwargs": { + "where": "language.id == table.language" + }, + "code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "cursor", + "operation": "execute", + "line": 333, + "args": [ + "*query" + ], + "kwargs": {}, + "code": "cursor.execute(*query)", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + }, + { + "object": "table_h", + "operation": "drop_column", + "line": 334, + "args": [ + "'language'" + ], + "kwargs": {}, + "code": "table_h.drop_column('language')", + "phase": "after_super", + "condition": "table_h.column_exist('language')" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "Configuration", + "method": "__register__", + "line": 34, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 45, + "args": [ + "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + }, + { + "object": "table", + "operation": "update", + "line": 45, + "args": [ + "[table.identifier_types]", + "[cls.identifier_types.sql_format(identifier_types)]" + ], + "kwargs": {}, + "code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 823, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 830, + "args": [ + "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 830, + "args": [ + "[table.type]", + "['cn_ric']" + ], + "kwargs": { + "where": "table.type == 'cn_rit'" + }, + "code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 841, + "args": [ + "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 841, + "args": [ + "[table.type]", + "['uy_rut']" + ], + "kwargs": { + "where": "table.type == 'uy_ruc'" + }, + "code": "table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/product.json b/data/7.4.25/product.json new file mode 100644 index 0000000..7fe10e7 --- /dev/null +++ b/data/7.4.25/product.json @@ -0,0 +1,39 @@ +{ + "version": "7.4.25", + "module": "product", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "Product", + "method": "__register__", + "line": 505, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 516, + "args": [ + "*table.update([table.suffix_code], [table.code])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.suffix_code], [table.code]))", + "phase": "after_super", + "condition": "fill_suffix_code" + }, + { + "object": "table", + "operation": "update", + "line": 516, + "args": [ + "[table.suffix_code]", + "[table.code]" + ], + "kwargs": {}, + "code": "table.update([table.suffix_code], [table.code])", + "phase": "after_super", + "condition": "fill_suffix_code" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/product_measurements.json b/data/7.4.25/product_measurements.json new file mode 100644 index 0000000..17e2c01 --- /dev/null +++ b/data/7.4.25/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "7.4.25", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/7.4.25/production.json b/data/7.4.25/production.json new file mode 100644 index 0000000..010148c --- /dev/null +++ b/data/7.4.25/production.json @@ -0,0 +1,117 @@ +{ + "version": "7.4.25", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 146, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 152, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 158, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/ir.py", + "class": "Cron", + "method": "__register__", + "line": 19, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 26, + "args": [ + "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 26, + "args": [ + "[table.method]", + "['ir.cron|stock_shipment_assign_try']" + ], + "kwargs": { + "where": "table.method == 'production|assign_cron'" + }, + "code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 266, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 272, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "cursor", + "operation": "execute", + "line": 280, + "args": [ + "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 280, + "args": [ + "[table.state]", + "['cancelled']" + ], + "kwargs": { + "where": "table.state == 'cancel'" + }, + "code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/production_split.json b/data/7.4.25/production_split.json new file mode 100644 index 0000000..4f62956 --- /dev/null +++ b/data/7.4.25/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.4.25", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.4.25/stock_lot.json b/data/7.4.25/stock_lot.json new file mode 100644 index 0000000..b0e6aaf --- /dev/null +++ b/data/7.4.25/stock_lot.json @@ -0,0 +1,40 @@ +{ + "version": "7.4.25", + "module": "stock_lot", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_lot/product.py", + "class": "Template", + "method": "__register__", + "line": 63, + "operations": [ + { + "object": "cursor_select", + "operation": "execute", + "line": 85, + "args": [ + "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" + ], + "kwargs": {}, + "code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + }, + { + "object": "template_lot_type", + "operation": "select", + "line": 85, + "args": [ + "template_lot_type.template" + ], + "kwargs": { + "distinct_on": "template_lot_type.template" + }, + "code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)", + "phase": "after_super", + "condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/stock_lot_sled.json b/data/7.4.25/stock_lot_sled.json new file mode 100644 index 0000000..0dd8dd7 --- /dev/null +++ b/data/7.4.25/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "7.4.25", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/7.4.25/stock_product_location.json b/data/7.4.25/stock_product_location.json new file mode 100644 index 0000000..890d0b1 --- /dev/null +++ b/data/7.4.25/stock_product_location.json @@ -0,0 +1,26 @@ +{ + "version": "7.4.25", + "module": "stock_product_location", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/stock_product_location/location.py", + "class": "ProductLocation", + "method": "__register__", + "line": 41, + "operations": [ + { + "object": "table", + "operation": "not_null_action", + "line": 47, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.4.25/stock_split.json b/data/7.4.25/stock_split.json new file mode 100644 index 0000000..b7bfd3f --- /dev/null +++ b/data/7.4.25/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.4.25", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/company.json b/data/7.6.20/company.json new file mode 100644 index 0000000..81d3307 --- /dev/null +++ b/data/7.6.20/company.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/country.json b/data/7.6.20/country.json new file mode 100644 index 0000000..1119fa9 --- /dev/null +++ b/data/7.6.20/country.json @@ -0,0 +1,40 @@ +{ + "version": "7.6.20", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 401, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 407, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 410, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.6.20/currency.json b/data/7.6.20/currency.json new file mode 100644 index 0000000..f63030b --- /dev/null +++ b/data/7.6.20/currency.json @@ -0,0 +1,45 @@ +{ + "version": "7.6.20", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 77, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 83, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "CurrencyRate", + "method": "__register__", + "line": 289, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 294, + "args": [ + "'check_currency_rate'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('check_currency_rate')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.6.20/party.json b/data/7.6.20/party.json new file mode 100644 index 0000000..26bfdfe --- /dev/null +++ b/data/7.6.20/party.json @@ -0,0 +1,129 @@ +{ + "version": "7.6.20", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 160, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 165, + "args": [ + "'street'", + "'street_unstructured'" + ], + "kwargs": {}, + "code": "table.column_rename('street', 'street_unstructured')", + "phase": "before_super" + }, + { + "object": "table", + "operation": "column_rename", + "line": 166, + "args": [ + "'name'", + "'building_name'" + ], + "kwargs": {}, + "code": "table.column_rename('name', 'building_name')", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "Configuration", + "method": "__register__", + "line": 33, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 44, + "args": [ + "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + }, + { + "object": "table", + "operation": "update", + "line": 44, + "args": [ + "[table.identifier_types]", + "[cls.identifier_types.sql_format(identifier_types)]" + ], + "kwargs": {}, + "code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 825, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 839, + "args": [ + "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 839, + "args": [ + "[table.type]", + "['uy_rut']" + ], + "kwargs": { + "where": "table.type == 'uy_ruc'" + }, + "code": "table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 843, + "args": [ + "*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['co_nit'], where=table.type == 'co_rut'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 843, + "args": [ + "[table.type]", + "['co_nit']" + ], + "kwargs": { + "where": "table.type == 'co_rut'" + }, + "code": "table.update([table.type], ['co_nit'], where=table.type == 'co_rut')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.6.20/product.json b/data/7.6.20/product.json new file mode 100644 index 0000000..000628e --- /dev/null +++ b/data/7.6.20/product.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "product", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/product_measurements.json b/data/7.6.20/product_measurements.json new file mode 100644 index 0000000..b899ebe --- /dev/null +++ b/data/7.6.20/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/production.json b/data/7.6.20/production.json new file mode 100644 index 0000000..51dc920 --- /dev/null +++ b/data/7.6.20/production.json @@ -0,0 +1,92 @@ +{ + "version": "7.6.20", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 142, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 148, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 154, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/ir.py", + "class": "Cron", + "method": "__register__", + "line": 19, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 26, + "args": [ + "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 26, + "args": [ + "[table.method]", + "['ir.cron|stock_shipment_assign_try']" + ], + "kwargs": { + "where": "table.method == 'production|assign_cron'" + }, + "code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 267, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 273, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.6.20/production_split.json b/data/7.6.20/production_split.json new file mode 100644 index 0000000..3cf3da7 --- /dev/null +++ b/data/7.6.20/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/stock_lot.json b/data/7.6.20/stock_lot.json new file mode 100644 index 0000000..ee8d1e9 --- /dev/null +++ b/data/7.6.20/stock_lot.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "stock_lot", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/stock_lot_sled.json b/data/7.6.20/stock_lot_sled.json new file mode 100644 index 0000000..56baa9b --- /dev/null +++ b/data/7.6.20/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/stock_product_location.json b/data/7.6.20/stock_product_location.json new file mode 100644 index 0000000..dbac280 --- /dev/null +++ b/data/7.6.20/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/7.6.20/stock_split.json b/data/7.6.20/stock_split.json new file mode 100644 index 0000000..dde57a0 --- /dev/null +++ b/data/7.6.20/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.6.20", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/company.json b/data/7.8.14/company.json new file mode 100644 index 0000000..48d039c --- /dev/null +++ b/data/7.8.14/company.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/country.json b/data/7.8.14/country.json new file mode 100644 index 0000000..e094769 --- /dev/null +++ b/data/7.8.14/country.json @@ -0,0 +1,40 @@ +{ + "version": "7.8.14", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 401, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 407, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 410, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.8.14/currency.json b/data/7.8.14/currency.json new file mode 100644 index 0000000..ab179f7 --- /dev/null +++ b/data/7.8.14/currency.json @@ -0,0 +1,45 @@ +{ + "version": "7.8.14", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 77, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 83, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "CurrencyRate", + "method": "__register__", + "line": 278, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 283, + "args": [ + "'check_currency_rate'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('check_currency_rate')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.8.14/party.json b/data/7.8.14/party.json new file mode 100644 index 0000000..2de6588 --- /dev/null +++ b/data/7.8.14/party.json @@ -0,0 +1,129 @@ +{ + "version": "7.8.14", + "module": "party", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/party/address.py", + "class": "Address", + "method": "__register__", + "line": 160, + "operations": [ + { + "object": "table", + "operation": "column_rename", + "line": 165, + "args": [ + "'street'", + "'street_unstructured'" + ], + "kwargs": {}, + "code": "table.column_rename('street', 'street_unstructured')", + "phase": "before_super" + }, + { + "object": "table", + "operation": "column_rename", + "line": 166, + "args": [ + "'name'", + "'building_name'" + ], + "kwargs": {}, + "code": "table.column_rename('name', 'building_name')", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "Configuration", + "method": "__register__", + "line": 33, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 44, + "args": [ + "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + }, + { + "object": "table", + "operation": "update", + "line": 44, + "args": [ + "[table.identifier_types]", + "[cls.identifier_types.sql_format(identifier_types)]" + ], + "kwargs": {}, + "code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])", + "phase": "after_super", + "condition": "configuration.identifier_types != identifier_types" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "Identifier", + "method": "__register__", + "line": 844, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 858, + "args": [ + "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 858, + "args": [ + "[table.type]", + "['uy_rut']" + ], + "kwargs": { + "where": "table.type == 'uy_ruc'" + }, + "code": "table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')", + "phase": "after_super" + }, + { + "object": "cursor", + "operation": "execute", + "line": 862, + "args": [ + "*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.type], ['co_nit'], where=table.type == 'co_rut'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 862, + "args": [ + "[table.type]", + "['co_nit']" + ], + "kwargs": { + "where": "table.type == 'co_rut'" + }, + "code": "table.update([table.type], ['co_nit'], where=table.type == 'co_rut')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.8.14/product.json b/data/7.8.14/product.json new file mode 100644 index 0000000..3de4d25 --- /dev/null +++ b/data/7.8.14/product.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "product", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/product_measurements.json b/data/7.8.14/product_measurements.json new file mode 100644 index 0000000..0233582 --- /dev/null +++ b/data/7.8.14/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/production.json b/data/7.8.14/production.json new file mode 100644 index 0000000..afcdede --- /dev/null +++ b/data/7.8.14/production.json @@ -0,0 +1,104 @@ +{ + "version": "7.8.14", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 208, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 214, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 220, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 222, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/ir.py", + "class": "Cron", + "method": "__register__", + "line": 19, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 26, + "args": [ + "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 26, + "args": [ + "[table.method]", + "['ir.cron|stock_shipment_assign_try']" + ], + "kwargs": { + "where": "table.method == 'production|assign_cron'" + }, + "code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 281, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 287, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/7.8.14/production_split.json b/data/7.8.14/production_split.json new file mode 100644 index 0000000..0b9cae8 --- /dev/null +++ b/data/7.8.14/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/stock_lot.json b/data/7.8.14/stock_lot.json new file mode 100644 index 0000000..29c47d0 --- /dev/null +++ b/data/7.8.14/stock_lot.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "stock_lot", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/stock_lot_sled.json b/data/7.8.14/stock_lot_sled.json new file mode 100644 index 0000000..30da767 --- /dev/null +++ b/data/7.8.14/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/stock_product_location.json b/data/7.8.14/stock_product_location.json new file mode 100644 index 0000000..fbeeb2d --- /dev/null +++ b/data/7.8.14/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/7.8.14/stock_split.json b/data/7.8.14/stock_split.json new file mode 100644 index 0000000..92c5468 --- /dev/null +++ b/data/7.8.14/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "7.8.14", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/company.json b/data/8.0.8/company.json new file mode 100644 index 0000000..65f85a8 --- /dev/null +++ b/data/8.0.8/company.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "company", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/country.json b/data/8.0.8/country.json new file mode 100644 index 0000000..2ce142d --- /dev/null +++ b/data/8.0.8/country.json @@ -0,0 +1,40 @@ +{ + "version": "8.0.8", + "module": "country", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/country/country.py", + "class": "Subdivision", + "method": "__register__", + "line": 401, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 407, + "args": [ + "'type'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('type', action='remove')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 410, + "args": [ + "'code'" + ], + "kwargs": { + "action": "'remove'" + }, + "code": "table_h.not_null_action('code', action='remove')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/8.0.8/currency.json b/data/8.0.8/currency.json new file mode 100644 index 0000000..0010a63 --- /dev/null +++ b/data/8.0.8/currency.json @@ -0,0 +1,45 @@ +{ + "version": "8.0.8", + "module": "currency", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "Currency", + "method": "__register__", + "line": 77, + "operations": [ + { + "object": "table_h", + "operation": "not_null_action", + "line": 83, + "args": [ + "'symbol'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('symbol', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/currency/currency.py", + "class": "CurrencyRate", + "method": "__register__", + "line": 278, + "operations": [ + { + "object": "table_h", + "operation": "drop_constraint", + "line": 283, + "args": [ + "'check_currency_rate'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('check_currency_rate')", + "phase": "after_super" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/8.0.8/product.json b/data/8.0.8/product.json new file mode 100644 index 0000000..d57ab1d --- /dev/null +++ b/data/8.0.8/product.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "product", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/product_measurements.json b/data/8.0.8/product_measurements.json new file mode 100644 index 0000000..1bb225f --- /dev/null +++ b/data/8.0.8/product_measurements.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "product_measurements", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/production.json b/data/8.0.8/production.json new file mode 100644 index 0000000..e0a4ec5 --- /dev/null +++ b/data/8.0.8/production.json @@ -0,0 +1,104 @@ +{ + "version": "8.0.8", + "module": "production", + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/bom.py", + "class": "BOMInput", + "method": "__register__", + "line": 208, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 214, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + }, + { + "object": "table_h", + "operation": "drop_constraint", + "line": 220, + "args": [ + "'product_bom_uniq'" + ], + "kwargs": {}, + "code": "table_h.drop_constraint('product_bom_uniq')", + "phase": "after_super" + }, + { + "object": "table_h", + "operation": "not_null_action", + "line": 222, + "args": [ + "'product'", + "'remove'" + ], + "kwargs": {}, + "code": "table_h.not_null_action('product', 'remove')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/ir.py", + "class": "Cron", + "method": "__register__", + "line": 19, + "operations": [ + { + "object": "cursor", + "operation": "execute", + "line": 26, + "args": [ + "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" + ], + "kwargs": {}, + "code": "cursor.execute(*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron'))", + "phase": "after_super" + }, + { + "object": "table", + "operation": "update", + "line": 26, + "args": [ + "[table.method]", + "['ir.cron|stock_shipment_assign_try']" + ], + "kwargs": { + "where": "table.method == 'production|assign_cron'" + }, + "code": "table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')", + "phase": "after_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/production/production.py", + "class": "Production", + "method": "__register__", + "line": 276, + "operations": [ + { + "object": "table_h", + "operation": "column_rename", + "line": 282, + "args": [ + "'uom'", + "'unit'" + ], + "kwargs": {}, + "code": "table_h.column_rename('uom', 'unit')", + "phase": "before_super", + "condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))" + } + ] + } + ] +} \ No newline at end of file diff --git a/data/8.0.8/production_split.json b/data/8.0.8/production_split.json new file mode 100644 index 0000000..1e19238 --- /dev/null +++ b/data/8.0.8/production_split.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "production_split", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/stock_lot.json b/data/8.0.8/stock_lot.json new file mode 100644 index 0000000..2bcca8f --- /dev/null +++ b/data/8.0.8/stock_lot.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "stock_lot", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/stock_lot_sled.json b/data/8.0.8/stock_lot_sled.json new file mode 100644 index 0000000..9e8e141 --- /dev/null +++ b/data/8.0.8/stock_lot_sled.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "stock_lot_sled", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/stock_product_location.json b/data/8.0.8/stock_product_location.json new file mode 100644 index 0000000..8bb2ac9 --- /dev/null +++ b/data/8.0.8/stock_product_location.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "stock_product_location", + "files": [] +} \ No newline at end of file diff --git a/data/8.0.8/stock_split.json b/data/8.0.8/stock_split.json new file mode 100644 index 0000000..c25e176 --- /dev/null +++ b/data/8.0.8/stock_split.json @@ -0,0 +1,5 @@ +{ + "version": "8.0.8", + "module": "stock_split", + "files": [] +} \ No newline at end of file diff --git a/extract_all.sh b/extract_all.sh new file mode 100755 index 0000000..a002b67 --- /dev/null +++ b/extract_all.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +set -e + +TRYTON_REPO="$HOME/tmp/tryton" +WORKDIR="$HOME/code/tryton-db-migration" +EXTRACTOR="$WORKDIR/extract.py" + + +START='5.0' +END='8.0' + +cd "$TRYTON_REPO" +VERSIONS=$( + git branch -r | + sed 's|origin/||; s|^[[:space:]]*||' | + grep -E '^[0-9]+\.[0-9]+$' | + sort -V | + awk -v start="$START" -v end="$END" ' + $0 >= start && $0 <= end + ' +) + + +# +echo $VERSIONS + +for VERSION in $VERSIONS +do + echo + echo "======================================================" + echo "Version $VERSION" + echo "======================================================" + + git switch "$VERSION" + + python3 "$EXTRACTOR" --repo $TRYTON_REPO --output $WORKDIR/data + +done + +git switch $END +echo +echo "Fertig."