diff --git a/data/5.0/country.json b/data/5.0/country.json index 164dc7b..9d2d550 100644 --- a/data/5.0/country.json +++ b/data/5.0/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 35, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 36, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 39, "args": [ "'code'", diff --git a/data/5.0/ir.json b/data/5.0/ir.json index 43958ca..f1fa594 100644 --- a/data/5.0/ir.json +++ b/data/5.0/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 123, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 508, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 511, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 511, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 702, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 705, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 708, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 709, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 709, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -154,6 +184,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "[attachment.file_id]", @@ -169,6 +202,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -181,6 +217,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "[attachment.file_id]", @@ -196,6 +235,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'digest'" @@ -208,6 +250,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 82, "args": [ "'collision'" @@ -220,6 +265,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 85, "args": [ "'resource_name'" @@ -239,6 +287,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1107, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -250,6 +301,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1107, "args": [ "[model_data.module]", @@ -272,6 +326,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 118, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -283,6 +340,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 118, "args": [ "[sql_table.state]", @@ -297,6 +357,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 121, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -308,6 +371,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 121, "args": [ "[sql_table.state]", @@ -322,6 +388,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 134, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -333,6 +402,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 134, "args": [ "[model_data_sql_table.module]", @@ -355,6 +427,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 412, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -366,6 +441,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 412, "args": [], "kwargs": { @@ -387,6 +465,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 41, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -408,6 +489,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 40, "args": [ "'create_uid'", @@ -428,6 +512,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 108, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -439,6 +526,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 108, "args": [ "[ir_translation.type]", @@ -453,6 +543,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 114, "args": [ "['lang', 'type', 'name']", @@ -473,6 +566,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 84, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -485,6 +581,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 84, "args": [ "sql_table.id", @@ -500,6 +599,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 93, "args": [ "'minimum_delay'" @@ -520,6 +622,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 304, "args": [ "['trigger', 'record_id']", @@ -540,6 +645,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 317, "args": [ "['model', 'domain', 'user', 'child_name']", diff --git a/data/5.0/party.json b/data/5.0/party.json index 1d4cd1f..1803c19 100644 --- a/data/5.0/party.json +++ b/data/5.0/party.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 74, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -23,6 +26,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 74, "args": [ "[sql_table.street]", @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 77, "args": [ "'streetbis'" @@ -56,6 +65,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 49, "args": [ "'name_parent_uniq'" @@ -75,6 +87,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 95, "args": [ "'name'", @@ -95,6 +110,10 @@ { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 279, "args": [ "[table.party, table.lang]", @@ -108,6 +127,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 281, "args": [ "party.id", @@ -121,6 +143,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 282, "args": [ "*query" @@ -133,6 +156,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 283, "args": [ "'lang'" @@ -153,6 +179,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 341, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -165,6 +194,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 341, "args": [ "party.id", @@ -181,6 +213,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 355, "args": [ "'vat_number'" @@ -193,6 +228,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 356, "args": [ "'vat_country'" diff --git a/data/5.0/product.json b/data/5.0/product.json index f1aa18a..778faab 100644 --- a/data/5.0/product.json +++ b/data/5.0/product.json @@ -11,6 +11,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "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]))" @@ -23,6 +27,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 396, "args": [], "kwargs": { @@ -36,6 +44,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 398, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -56,6 +67,9 @@ { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 444, "args": [ "'template'", @@ -69,6 +83,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -81,6 +98,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 451, "args": [], "kwargs": { @@ -94,6 +114,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 454, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -108,6 +129,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 461, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -120,6 +144,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 461, "args": [], "kwargs": { @@ -132,6 +159,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 464, "args": [ "'template'" diff --git a/data/5.0/production.json b/data/5.0/production.json index 8d88dd5..8d818ab 100644 --- a/data/5.0/production.json +++ b/data/5.0/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 230, "args": [ "'code'", @@ -24,6 +27,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 236, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +41,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 236, "args": [ "[table.planned_start_date]", diff --git a/data/5.0/res.json b/data/5.0/res.json index aa44544..e3857bb 100644 --- a/data/5.0/res.json +++ b/data/5.0/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 210, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 210, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 213, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 214, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 217, "args": [ "'name'" diff --git a/data/5.2/country.json b/data/5.2/country.json index c83e621..9d57e5b 100644 --- a/data/5.2/country.json +++ b/data/5.2/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 36, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 37, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 40, "args": [ "'code'", diff --git a/data/5.2/ir.json b/data/5.2/ir.json index c0c2cce..a4c10fb 100644 --- a/data/5.2/ir.json +++ b/data/5.2/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 151, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 538, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 541, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 541, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 737, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 740, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 743, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 744, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 744, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 915, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 954, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 82, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 85, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 77, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1144, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1144, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1150, "args": [ "'db_id'" @@ -345,6 +411,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 119, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +425,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 119, "args": [ "[sql_table.state]", @@ -370,6 +442,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 122, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +456,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 122, "args": [ "[sql_table.state]", @@ -395,6 +473,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 135, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +487,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 135, "args": [ "[model_data_sql_table.module]", @@ -428,6 +512,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 407, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +526,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 407, "args": [], "kwargs": { @@ -452,6 +542,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 418, "args": [ "'sequence'", @@ -472,6 +565,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 41, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +589,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 40, "args": [ "'create_uid'", @@ -513,6 +612,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 93, "args": [ "'translation_md5_uniq'" @@ -525,6 +627,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "'src_md5'" @@ -537,6 +642,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 99, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -548,6 +656,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 99, "args": [ "[ir_translation.type]", @@ -562,6 +673,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 105, "args": [ "['lang', 'type', 'name']", @@ -582,6 +696,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -594,6 +711,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "sql_table.id", @@ -609,6 +729,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 95, "args": [ "'minimum_delay'" @@ -629,6 +752,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 306, "args": [ "['trigger', 'record_id']", @@ -649,6 +775,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 39, "args": [ "'sequence'", @@ -669,6 +798,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 327, "args": [ "['model', 'domain', 'user', 'child_name']", diff --git a/data/5.2/party.json b/data/5.2/party.json index 6552200..f941093 100644 --- a/data/5.2/party.json +++ b/data/5.2/party.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 79, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -23,6 +26,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 79, "args": [ "[sql_table.street]", @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 82, "args": [ "'streetbis'" @@ -56,6 +65,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 49, "args": [ "'name_parent_uniq'" @@ -75,6 +87,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 97, "args": [ "'name'", @@ -95,6 +110,10 @@ { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 292, "args": [ "[table.party, table.lang]", @@ -108,6 +127,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 294, "args": [ "party.id", @@ -121,6 +143,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 295, "args": [ "*query" @@ -133,6 +156,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 296, "args": [ "'lang'" @@ -153,6 +179,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 451, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -165,6 +194,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 451, "args": [ "party.id", @@ -181,6 +213,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 468, "args": [ "'vat_number'" @@ -193,6 +228,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 469, "args": [ "'vat_country'" diff --git a/data/5.2/product.json b/data/5.2/product.json index 3022e37..68e17aa 100644 --- a/data/5.2/product.json +++ b/data/5.2/product.json @@ -11,6 +11,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "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]))" @@ -23,6 +27,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 404, "args": [], "kwargs": { @@ -36,6 +44,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 406, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -56,6 +67,9 @@ { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 452, "args": [ "'template'", @@ -69,6 +83,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -81,6 +98,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 459, "args": [], "kwargs": { @@ -94,6 +114,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 462, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -108,6 +129,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 469, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -120,6 +144,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 469, "args": [], "kwargs": { @@ -132,6 +159,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 472, "args": [ "'template'" diff --git a/data/5.2/production.json b/data/5.2/production.json index 813eb4c..b3566be 100644 --- a/data/5.2/production.json +++ b/data/5.2/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 228, "args": [ "'code'", @@ -24,6 +27,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 234, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +41,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 234, "args": [ "[table.planned_start_date]", diff --git a/data/5.2/res.json b/data/5.2/res.json index 16ec556..89323d7 100644 --- a/data/5.2/res.json +++ b/data/5.2/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 204, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 204, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 207, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 208, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 211, "args": [ "'name'" diff --git a/data/5.4/country.json b/data/5.4/country.json index ca009da..03a4b49 100644 --- a/data/5.4/country.json +++ b/data/5.4/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 43, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 44, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 47, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 50, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 50, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [], "kwargs": { diff --git a/data/5.4/currency.json b/data/5.4/currency.json index 3022ddb..107ba36 100644 --- a/data/5.4/currency.json +++ b/data/5.4/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 70, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 70, "args": [], "kwargs": { diff --git a/data/5.4/ir.json b/data/5.4/ir.json index 18539d2..e7496fb 100644 --- a/data/5.4/ir.json +++ b/data/5.4/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 151, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 538, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 541, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 541, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 737, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 740, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 743, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 744, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 744, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 915, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 954, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 70, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 75, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 82, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 85, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 80, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1144, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1144, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1150, "args": [ "'db_id'" @@ -345,6 +411,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 119, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +425,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 119, "args": [ "[sql_table.state]", @@ -370,6 +442,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 122, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +456,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 122, "args": [ "[sql_table.state]", @@ -395,6 +473,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 135, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +487,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 135, "args": [ "[model_data_sql_table.module]", @@ -428,6 +512,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 407, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +526,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 407, "args": [], "kwargs": { @@ -452,6 +542,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 418, "args": [ "'sequence'", @@ -472,6 +565,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 41, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +589,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 40, "args": [ "'create_uid'", @@ -513,6 +612,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "'translation_md5_uniq'" @@ -525,6 +627,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 95, "args": [ "'src_md5'" @@ -537,6 +642,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -548,6 +656,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "[ir_translation.type]", @@ -562,6 +673,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 106, "args": [ "['lang', 'type', 'name']", @@ -582,6 +696,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -594,6 +711,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "sql_table.id", @@ -609,6 +729,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 95, "args": [ "'minimum_delay'" @@ -629,6 +752,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 307, "args": [ "['trigger', 'record_id']", @@ -649,6 +775,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 39, "args": [ "'sequence'", @@ -669,6 +798,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 327, "args": [ "['model', 'domain', 'user', 'child_name']", diff --git a/data/5.4/party.json b/data/5.4/party.json index 0ceb51e..6086cc9 100644 --- a/data/5.4/party.json +++ b/data/5.4/party.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 86, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -23,6 +26,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 86, "args": [ "[sql_table.street]", @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 89, "args": [ "'streetbis'" @@ -56,6 +65,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 286, "args": [ "[table.country_code]", @@ -69,6 +82,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 288, "args": [ "country.code" @@ -83,6 +99,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 291, "args": [ "*query" @@ -95,6 +112,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 292, "args": [ "'country'" @@ -107,6 +127,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 296, "args": [ "[table.language_code]", @@ -120,6 +144,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 298, "args": [ "Substring(language.code, 0, 2)" @@ -134,6 +161,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 301, "args": [ "*query" @@ -146,6 +174,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 302, "args": [ "'language'" @@ -166,6 +197,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 49, "args": [ "'name_parent_uniq'" @@ -185,6 +219,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 97, "args": [ "'name'", @@ -205,6 +242,10 @@ { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 292, "args": [ "[table.party, table.lang]", @@ -218,6 +259,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 294, "args": [ "party.id", @@ -231,6 +275,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 295, "args": [ "*query" @@ -243,6 +288,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 296, "args": [ "'lang'" @@ -263,6 +311,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 451, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -275,6 +326,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 451, "args": [ "party.id", @@ -291,6 +345,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 468, "args": [ "'vat_number'" @@ -303,6 +360,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 469, "args": [ "'vat_country'" diff --git a/data/5.4/product.json b/data/5.4/product.json index 2f31f9d..01be5a6 100644 --- a/data/5.4/product.json +++ b/data/5.4/product.json @@ -11,6 +11,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "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]))" @@ -23,6 +27,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 461, "args": [], "kwargs": { @@ -36,6 +44,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 463, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -56,6 +67,9 @@ { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 509, "args": [ "'template'", @@ -69,6 +83,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -81,6 +98,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 516, "args": [], "kwargs": { @@ -94,6 +114,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 519, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -108,6 +129,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 526, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -120,6 +144,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 526, "args": [], "kwargs": { @@ -132,6 +159,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 529, "args": [ "'template'" diff --git a/data/5.4/production.json b/data/5.4/production.json index e8d2518..f34e068 100644 --- a/data/5.4/production.json +++ b/data/5.4/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 228, "args": [ "'code'", @@ -24,6 +27,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 234, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +41,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 234, "args": [ "[table.planned_start_date]", diff --git a/data/5.4/res.json b/data/5.4/res.json index 6e72115..c6cd82f 100644 --- a/data/5.4/res.json +++ b/data/5.4/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 204, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 204, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 207, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 208, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 211, "args": [ "'name'" diff --git a/data/5.4/stock_lot.json b/data/5.4/stock_lot.json index 786ae7c..5fc980e 100644 --- a/data/5.4/stock_lot.json +++ b/data/5.4/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 51, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 51, "args": [ "template_lot_type.template" diff --git a/data/5.6/company.json b/data/5.6/company.json index b753586..e62efbd 100644 --- a/data/5.6/company.json +++ b/data/5.6/company.json @@ -1,5 +1,50 @@ { "version": "5.6", "module": "company", - "files": [] + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 20, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 21, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 44, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + } + ] } \ No newline at end of file diff --git a/data/5.6/country.json b/data/5.6/country.json index d2315fe..a6f0054 100644 --- a/data/5.6/country.json +++ b/data/5.6/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 41, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 42, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 45, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 48, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 48, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 223, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 223, "args": [], "kwargs": { diff --git a/data/5.6/currency.json b/data/5.6/currency.json index fd0023d..bfe74a5 100644 --- a/data/5.6/currency.json +++ b/data/5.6/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 68, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 68, "args": [], "kwargs": { diff --git a/data/5.6/ir.json b/data/5.6/ir.json index 38656c0..fb6a553 100644 --- a/data/5.6/ir.json +++ b/data/5.6/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 156, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 554, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 557, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 557, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 753, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 756, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 759, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 760, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 760, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 939, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 978, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 78, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 78, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 84, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 85, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 88, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 80, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1166, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1166, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1172, "args": [ "'db_id'" @@ -342,9 +408,29 @@ "method": "__register__", "line": 103, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 113, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 118, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +442,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 118, "args": [ "[sql_table.state]", @@ -370,6 +459,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 121, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +473,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 121, "args": [ "[sql_table.state]", @@ -395,6 +490,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 134, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +504,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 134, "args": [ "[model_data_sql_table.module]", @@ -419,15 +520,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 362, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 366, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 393, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 402, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 403, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +585,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 403, "args": [], "kwargs": { @@ -452,6 +601,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 414, "args": [ "'sequence'", @@ -472,6 +624,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 41, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +648,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 40, "args": [ "'create_uid'", @@ -513,6 +671,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "'translation_md5_uniq'" @@ -525,6 +686,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 95, "args": [ "'src_md5'" @@ -537,6 +701,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -548,6 +715,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "[ir_translation.type]", @@ -562,6 +732,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 106, "args": [ "['lang', 'type', 'name']", @@ -582,6 +755,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 89, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -594,6 +770,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 89, "args": [ "sql_table.id", @@ -609,6 +788,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 98, "args": [ "'minimum_delay'" @@ -621,6 +803,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 106, "args": [ "model.model" @@ -635,6 +820,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -647,6 +835,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "[sql_table.action]", @@ -660,6 +851,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 112, "args": [ "'action_model'" @@ -672,6 +866,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 113, "args": [ "'action_function'" @@ -692,6 +889,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 334, "args": [ "['trigger', 'record_id']", @@ -712,6 +912,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 39, "args": [ "'sequence'", @@ -732,6 +935,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 327, "args": [ "['model', 'domain', 'user', 'child_name']", diff --git a/data/5.6/party.json b/data/5.6/party.json index 1f119a7..758df64 100644 --- a/data/5.6/party.json +++ b/data/5.6/party.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 80, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -23,6 +26,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 80, "args": [ "[sql_table.street]", @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 83, "args": [ "'streetbis'" @@ -56,6 +65,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 280, "args": [ "[table.country_code]", @@ -69,6 +82,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 282, "args": [ "country.code" @@ -83,6 +99,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 285, "args": [ "*query" @@ -95,6 +112,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 286, "args": [ "'country'" @@ -107,6 +127,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 290, "args": [ "[table.language_code]", @@ -120,6 +144,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 292, "args": [ "Substring(language.code, 0, 2)" @@ -134,6 +161,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 295, "args": [ "*query" @@ -146,6 +174,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 296, "args": [ "'language'" @@ -166,6 +197,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -176,6 +210,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 40, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 41, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -185,6 +239,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 87, "args": [ "'name'", @@ -202,9 +259,27 @@ "method": "__register__", "line": 268, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 272, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 281, "args": [ "[table.party, table.lang]", @@ -218,6 +293,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 283, "args": [ "party.id", @@ -231,6 +309,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 284, "args": [ "*query" @@ -243,6 +322,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 285, "args": [ "'lang'" @@ -263,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 440, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -275,6 +360,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 440, "args": [ "party.id", @@ -291,6 +379,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 457, "args": [ "'vat_number'" @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 458, "args": [ "'vat_country'" diff --git a/data/5.6/product.json b/data/5.6/product.json index 6a4e737..bb7843b 100644 --- a/data/5.6/product.json +++ b/data/5.6/product.json @@ -2,6 +2,28 @@ "version": "5.6", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 48, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 49, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 371, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 371, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 551, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 552, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 578, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 585, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 586, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 601, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 603, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 634, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 641, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 648, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 655, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 658, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 665, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 665, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 668, "args": [ "'template'" diff --git a/data/5.6/production.json b/data/5.6/production.json index 4dc943c..e044542 100644 --- a/data/5.6/production.json +++ b/data/5.6/production.json @@ -2,6 +2,28 @@ "version": "5.6", "module": "production", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 44, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -11,6 +33,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 255, "args": [ "'code'", @@ -24,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 261, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 261, "args": [ "[table.planned_start_date]", diff --git a/data/5.6/res.json b/data/5.6/res.json index cb5fdc5..a010f6e 100644 --- a/data/5.6/res.json +++ b/data/5.6/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 205, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 205, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 208, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 209, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 212, "args": [ "'name'" diff --git a/data/5.6/stock_lot.json b/data/5.6/stock_lot.json index 1227546..9bf214e 100644 --- a/data/5.6/stock_lot.json +++ b/data/5.6/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 51, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 51, "args": [ "template_lot_type.template" diff --git a/data/5.8/company.json b/data/5.8/company.json index 3899fd7..bbe9aab 100644 --- a/data/5.8/company.json +++ b/data/5.8/company.json @@ -1,5 +1,50 @@ { "version": "5.8", "module": "company", - "files": [] + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 20, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 21, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 44, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + } + ] } \ No newline at end of file diff --git a/data/5.8/country.json b/data/5.8/country.json index 2ee4925..dc48c06 100644 --- a/data/5.8/country.json +++ b/data/5.8/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 41, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 42, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 45, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 48, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 48, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 223, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 223, "args": [], "kwargs": { diff --git a/data/5.8/currency.json b/data/5.8/currency.json index 6206e4b..504067d 100644 --- a/data/5.8/currency.json +++ b/data/5.8/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 68, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 68, "args": [], "kwargs": { diff --git a/data/5.8/ir.json b/data/5.8/ir.json index 4564168..a77d1af 100644 --- a/data/5.8/ir.json +++ b/data/5.8/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 153, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 534, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 537, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 537, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 713, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 716, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 719, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 720, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 720, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 899, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 938, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 78, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 78, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 84, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 85, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 88, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 82, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1168, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1168, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1174, "args": [ "'db_id'" @@ -342,9 +408,29 @@ "method": "__register__", "line": 95, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 105, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 110, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +442,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 110, "args": [ "[sql_table.state]", @@ -370,6 +459,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 113, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +473,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 113, "args": [ "[sql_table.state]", @@ -395,6 +490,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 126, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +504,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 126, "args": [ "[model_data_sql_table.module]", @@ -419,15 +520,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 354, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 358, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 385, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 394, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 395, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +585,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 395, "args": [], "kwargs": { @@ -452,6 +601,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 406, "args": [ "'sequence'", @@ -472,6 +624,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 42, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +648,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 36, "args": [ "'create_uid'", @@ -513,6 +671,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 88, "args": [ "'translation_md5_uniq'" @@ -525,6 +686,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 89, "args": [ "'src_md5'" @@ -537,6 +701,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -548,6 +715,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "[ir_translation.type]", @@ -562,6 +732,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "['lang', 'type', 'name']", @@ -582,6 +755,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -594,6 +770,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "sql_table.id", @@ -609,6 +788,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "'minimum_delay'" @@ -621,6 +803,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 102, "args": [ "model.model" @@ -635,6 +820,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -647,6 +835,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "[sql_table.action]", @@ -660,6 +851,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "'action_model'" @@ -672,6 +866,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 109, "args": [ "'action_function'" @@ -692,6 +889,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 331, "args": [ "['trigger', 'record_id']", @@ -712,6 +912,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 35, "args": [ "'sequence'", @@ -732,6 +935,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 328, "args": [ "['model', 'domain', 'user', 'child_name']", @@ -752,6 +958,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 401, "args": [ "'user'", diff --git a/data/5.8/party.json b/data/5.8/party.json index 1fdc37a..338ae4c 100644 --- a/data/5.8/party.json +++ b/data/5.8/party.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 80, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -23,6 +26,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 80, "args": [ "[sql_table.street]", @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 83, "args": [ "'streetbis'" @@ -56,6 +65,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 280, "args": [ "[table.country_code]", @@ -69,6 +82,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 282, "args": [ "country.code" @@ -83,6 +99,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 285, "args": [ "*query" @@ -95,6 +112,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 286, "args": [ "'country'" @@ -107,6 +127,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 290, "args": [ "[table.language_code]", @@ -120,6 +144,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 292, "args": [ "Substring(language.code, 0, 2)" @@ -134,6 +161,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 295, "args": [ "*query" @@ -146,6 +174,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 296, "args": [ "'language'" @@ -166,6 +197,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -176,6 +210,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 40, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 41, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -185,6 +239,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 87, "args": [ "'name'", @@ -202,9 +259,27 @@ "method": "__register__", "line": 270, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 274, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 283, "args": [ "[table.party, table.lang]", @@ -218,6 +293,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 285, "args": [ "party.id", @@ -231,6 +309,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 286, "args": [ "*query" @@ -243,6 +322,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 287, "args": [ "'lang'" @@ -263,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 457, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -275,6 +360,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 457, "args": [ "party.id", @@ -291,6 +379,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 474, "args": [ "'vat_number'" @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 475, "args": [ "'vat_country'" diff --git a/data/5.8/product.json b/data/5.8/product.json index 9e48f44..65a2af0 100644 --- a/data/5.8/product.json +++ b/data/5.8/product.json @@ -2,6 +2,28 @@ "version": "5.8", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 53, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 54, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 412, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 412, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 595, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 596, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 622, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 629, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 630, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 645, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 647, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 678, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 685, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 692, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 699, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 702, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 709, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 709, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 712, "args": [ "'template'" diff --git a/data/5.8/production.json b/data/5.8/production.json index 9b0dd5c..55161df 100644 --- a/data/5.8/production.json +++ b/data/5.8/production.json @@ -2,6 +2,28 @@ "version": "5.8", "module": "production", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 43, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 44, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -11,6 +33,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 260, "args": [ "'code'", @@ -24,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 266, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 266, "args": [ "[table.planned_start_date]", @@ -49,6 +80,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 273, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -60,6 +94,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 273, "args": [ "[table.state]", diff --git a/data/5.8/res.json b/data/5.8/res.json index 1b15b99..45c75ac 100644 --- a/data/5.8/res.json +++ b/data/5.8/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 204, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 204, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 207, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 208, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 211, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "[model_data.noupdate]", diff --git a/data/5.8/stock_lot.json b/data/5.8/stock_lot.json index 8971b82..42a46e4 100644 --- a/data/5.8/stock_lot.json +++ b/data/5.8/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 51, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 51, "args": [ "template_lot_type.template" diff --git a/data/5.8/stock_product_location.json b/data/5.8/stock_product_location.json index 5604afc..e9fa931 100644 --- a/data/5.8/stock_product_location.json +++ b/data/5.8/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 49, "args": [ "'product'", diff --git a/data/6.0/company.json b/data/6.0/company.json index 5f8dfb3..47a758b 100644 --- a/data/6.0/company.json +++ b/data/6.0/company.json @@ -2,6 +2,50 @@ "version": "6.0", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 21, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 22, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 51, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 52, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +55,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 86, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +71,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 86, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +88,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 88, "args": [ "table.id", @@ -51,6 +106,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "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)))" @@ -63,6 +122,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 91, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +139,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 93, "args": [ "table.id", @@ -91,6 +157,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 97, "args": [ "'main_company'" diff --git a/data/6.0/country.json b/data/6.0/country.json index 88d25c2..7dc277a 100644 --- a/data/6.0/country.json +++ b/data/6.0/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 42, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 43, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 46, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [], "kwargs": { @@ -102,9 +123,28 @@ "method": "__register__", "line": 287, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 289, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 291, "args": [ "'zip'", diff --git a/data/6.0/currency.json b/data/6.0/currency.json index 981b1f0..a15461a 100644 --- a/data/6.0/currency.json +++ b/data/6.0/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 76, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 76, "args": [], "kwargs": { diff --git a/data/6.0/ir.json b/data/6.0/ir.json index 4a0593b..11a719e 100644 --- a/data/6.0/ir.json +++ b/data/6.0/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 170, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 567, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 570, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 570, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 740, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 743, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 746, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 747, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 747, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 926, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 965, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 68, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 68, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 79, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 80, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 83, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 95, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1212, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1212, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1218, "args": [ "'db_id'" @@ -342,9 +408,29 @@ "method": "__register__", "line": 96, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 106, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +442,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "[sql_table.state]", @@ -370,6 +459,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +473,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "[sql_table.state]", @@ -395,6 +490,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +504,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "[model_data_sql_table.module]", @@ -419,15 +520,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 355, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 359, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 386, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 395, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +585,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [], "kwargs": { @@ -452,6 +601,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 407, "args": [ "'sequence'", @@ -472,6 +624,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 42, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +648,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 45, "args": [ "'code'" @@ -514,6 +672,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 128, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -526,6 +688,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 128, "args": [ "[table.sequence_type]", @@ -539,6 +705,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 130, "args": [ "sequence_type.id" @@ -553,6 +722,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 133, "args": [ "'code'" @@ -573,6 +745,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 36, "args": [ "'create_uid'", @@ -593,6 +768,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 88, "args": [ "'translation_md5_uniq'" @@ -605,6 +783,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 89, "args": [ "'src_md5'" @@ -617,6 +798,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -628,6 +812,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "[ir_translation.type]", @@ -642,6 +829,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "['lang', 'type', 'name']", @@ -662,6 +852,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -674,6 +867,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "sql_table.id", @@ -689,6 +885,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "'minimum_delay'" @@ -701,6 +900,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 102, "args": [ "model.model" @@ -715,6 +917,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -727,6 +932,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "[sql_table.action]", @@ -740,6 +948,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "'action_model'" @@ -752,6 +963,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 109, "args": [ "'action_function'" @@ -772,6 +986,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 331, "args": [ "['trigger', 'record_id']", @@ -792,6 +1009,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 35, "args": [ "'sequence'", @@ -812,6 +1032,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 321, "args": [ "['model', 'domain', 'user', 'child_name']", @@ -832,6 +1055,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 394, "args": [ "'user'", diff --git a/data/6.0/party.json b/data/6.0/party.json index df39d3a..6edcf64 100644 --- a/data/6.0/party.json +++ b/data/6.0/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 73, "args": [ "'zip'", @@ -23,6 +26,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 84, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -35,6 +41,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 84, "args": [ "[sql_table.street]", @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 87, "args": [ "'streetbis'" @@ -68,6 +80,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 293, "args": [ "[table.country_code]", @@ -81,6 +97,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 295, "args": [ "country.code" @@ -95,6 +114,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 298, "args": [ "*query" @@ -107,6 +127,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 299, "args": [ "'country'" @@ -119,6 +142,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 303, "args": [ "[table.language_code]", @@ -132,6 +159,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 305, "args": [ "Substring(language.code, 0, 2)" @@ -146,6 +176,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 308, "args": [ "*query" @@ -158,6 +189,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 309, "args": [ "'language'" @@ -178,6 +212,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -188,6 +225,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 97, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 98, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -197,6 +254,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 90, "args": [ "'name'", @@ -214,9 +274,27 @@ "method": "__register__", "line": 322, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 326, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 335, "args": [ "[table.party, table.lang]", @@ -230,6 +308,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 337, "args": [ "party.id", @@ -243,6 +324,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 338, "args": [ "*query" @@ -255,6 +337,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 339, "args": [ "'lang'" @@ -275,6 +360,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 528, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -287,6 +375,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 528, "args": [ "party.id", @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 545, "args": [ "'vat_number'" @@ -315,6 +409,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 546, "args": [ "'vat_country'" @@ -327,6 +424,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 549, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -338,6 +438,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 549, "args": [ "[table.type]", diff --git a/data/6.0/product.json b/data/6.0/product.json index c3091da..fde1204 100644 --- a/data/6.0/product.json +++ b/data/6.0/product.json @@ -2,6 +2,28 @@ "version": "6.0", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 54, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 55, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 427, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 427, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 616, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 617, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 647, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 654, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 655, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 670, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 672, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 707, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 714, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 721, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 728, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 731, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 738, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 738, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 741, "args": [ "'template'" diff --git a/data/6.0/production.json b/data/6.0/production.json index 252ca93..6b71d47 100644 --- a/data/6.0/production.json +++ b/data/6.0/production.json @@ -2,6 +2,28 @@ "version": "6.0", "module": "production", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 45, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 46, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -11,6 +33,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 270, "args": [ "'code'", @@ -24,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 276, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -35,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 276, "args": [ "[table.planned_start_date]", @@ -49,6 +80,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 283, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -60,6 +94,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 283, "args": [ "[table.state]", diff --git a/data/6.0/res.json b/data/6.0/res.json index c3051cb..91cc573 100644 --- a/data/6.0/res.json +++ b/data/6.0/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 210, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 210, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 213, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 214, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 217, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 220, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 220, "args": [ "[model_data.noupdate]", diff --git a/data/6.0/stock_lot.json b/data/6.0/stock_lot.json index f3328cd..4141d07 100644 --- a/data/6.0/stock_lot.json +++ b/data/6.0/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 87, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 87, "args": [ "template_lot_type.template" diff --git a/data/6.0/stock_product_location.json b/data/6.0/stock_product_location.json index 3cb11e3..64efa09 100644 --- a/data/6.0/stock_product_location.json +++ b/data/6.0/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 49, "args": [ "'product'", diff --git a/data/6.2/company.json b/data/6.2/company.json index c8097e4..90d190d 100644 --- a/data/6.2/company.json +++ b/data/6.2/company.json @@ -2,6 +2,50 @@ "version": "6.2", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 21, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 22, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 51, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 52, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +55,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 86, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +71,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 86, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +88,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 88, "args": [ "table.id", @@ -51,6 +106,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "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)))" @@ -63,6 +122,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 91, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +139,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 93, "args": [ "table.id", @@ -91,6 +157,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 97, "args": [ "'main_company'" diff --git a/data/6.2/country.json b/data/6.2/country.json index 48f9ea3..a5de9be 100644 --- a/data/6.2/country.json +++ b/data/6.2/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 42, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 43, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 46, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [], "kwargs": { @@ -102,9 +123,28 @@ "method": "__register__", "line": 287, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 289, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 291, "args": [ "'zip'", diff --git a/data/6.2/currency.json b/data/6.2/currency.json index 29f2c81..4960f75 100644 --- a/data/6.2/currency.json +++ b/data/6.2/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 78, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 78, "args": [], "kwargs": { diff --git a/data/6.2/ir.json b/data/6.2/ir.json index 84de0eb..8ded1d3 100644 --- a/data/6.2/ir.json +++ b/data/6.2/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 171, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 571, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 574, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 574, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 767, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 770, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 773, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 774, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 774, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 953, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 992, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 68, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 68, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 73, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 79, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 80, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 83, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 97, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1208, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -310,6 +370,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1208, "args": [ "[model_data.module]", @@ -324,6 +387,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1214, "args": [ "'db_id'" @@ -342,9 +408,29 @@ "method": "__register__", "line": 96, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 106, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -356,6 +442,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "[sql_table.state]", @@ -370,6 +459,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -381,6 +473,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "[sql_table.state]", @@ -395,6 +490,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -406,6 +504,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "[model_data_sql_table.module]", @@ -419,15 +520,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 355, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 359, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 386, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 395, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -439,6 +585,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [], "kwargs": { @@ -452,6 +601,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 407, "args": [ "'sequence'", @@ -472,6 +624,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 42, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -493,6 +648,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 49, "args": [ "'code'" @@ -514,6 +672,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 132, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -526,6 +688,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 132, "args": [ "[table.sequence_type]", @@ -539,6 +705,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 134, "args": [ "sequence_type.id" @@ -553,6 +722,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 137, "args": [ "'code'" @@ -573,6 +745,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 36, "args": [ "'create_uid'", @@ -593,6 +768,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 88, "args": [ "'translation_md5_uniq'" @@ -605,6 +783,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 89, "args": [ "'src_md5'" @@ -617,6 +798,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -628,6 +812,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 94, "args": [ "[ir_translation.type]", @@ -642,6 +829,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 100, "args": [ "['lang', 'type', 'name']", @@ -662,6 +852,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -674,6 +867,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "sql_table.id", @@ -689,6 +885,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "'minimum_delay'" @@ -701,6 +900,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 102, "args": [ "model.model" @@ -715,6 +917,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -727,6 +932,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "[sql_table.action]", @@ -740,6 +948,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "'action_model'" @@ -752,6 +963,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 109, "args": [ "'action_function'" @@ -772,6 +986,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 331, "args": [ "['trigger', 'record_id']", @@ -792,6 +1009,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 35, "args": [ "'sequence'", @@ -812,6 +1032,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 321, "args": [ "['model', 'domain', 'user', 'child_name']", @@ -832,6 +1055,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 394, "args": [ "'user'", diff --git a/data/6.2/party.json b/data/6.2/party.json index ae81384..f55d80c 100644 --- a/data/6.2/party.json +++ b/data/6.2/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 73, "args": [ "'zip'", @@ -23,6 +26,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 84, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -35,6 +41,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 84, "args": [ "[sql_table.street]", @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 87, "args": [ "'streetbis'" @@ -68,6 +80,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 286, "args": [ "[table.country_code]", @@ -81,6 +97,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 288, "args": [ "country.code" @@ -95,6 +114,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 291, "args": [ "*query" @@ -107,6 +127,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 292, "args": [ "'country'" @@ -119,6 +142,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 296, "args": [ "[table.language_code]", @@ -132,6 +159,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 298, "args": [ "Substring(language.code, 0, 2)" @@ -146,6 +176,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 301, "args": [ "*query" @@ -158,6 +189,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 302, "args": [ "'language'" @@ -178,6 +212,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -188,6 +225,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 97, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 98, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -197,6 +254,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 109, "args": [ "'name'", @@ -214,9 +274,27 @@ "method": "__register__", "line": 357, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 361, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 370, "args": [ "[table.party, table.lang]", @@ -230,6 +308,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 372, "args": [ "party.id", @@ -243,6 +324,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 373, "args": [ "*query" @@ -255,6 +337,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 374, "args": [ "'lang'" @@ -275,6 +360,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 638, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -287,6 +375,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 638, "args": [ "party.id", @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 655, "args": [ "'vat_number'" @@ -315,6 +409,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 656, "args": [ "'vat_country'" @@ -327,6 +424,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -338,6 +438,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "[table.type]", diff --git a/data/6.2/product.json b/data/6.2/product.json index 5280652..ec21572 100644 --- a/data/6.2/product.json +++ b/data/6.2/product.json @@ -2,6 +2,28 @@ "version": "6.2", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 54, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 55, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 443, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 443, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 646, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 647, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 677, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 684, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 685, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 700, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 702, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 742, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 749, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 756, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 763, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 766, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 773, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 773, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 776, "args": [ "'template'" diff --git a/data/6.2/production.json b/data/6.2/production.json index 2d669ec..a220235 100644 --- a/data/6.2/production.json +++ b/data/6.2/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 75, "args": [ "'product_bom_uniq'" @@ -21,6 +24,28 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 45, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 46, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -30,6 +55,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 271, "args": [ "'code'", @@ -43,6 +71,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 277, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -54,6 +85,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 277, "args": [ "[table.planned_start_date]", @@ -68,6 +102,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 284, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -79,6 +116,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 284, "args": [ "[table.state]", diff --git a/data/6.2/res.json b/data/6.2/res.json index 6211dc5..d828617 100644 --- a/data/6.2/res.json +++ b/data/6.2/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 218, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 218, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 221, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 222, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 225, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 228, "args": [ "[model_data.noupdate]", diff --git a/data/6.2/stock_lot.json b/data/6.2/stock_lot.json index a98d740..7236edc 100644 --- a/data/6.2/stock_lot.json +++ b/data/6.2/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 84, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 84, "args": [ "template_lot_type.template" diff --git a/data/6.2/stock_product_location.json b/data/6.2/stock_product_location.json index ad317e3..f6a34a3 100644 --- a/data/6.2/stock_product_location.json +++ b/data/6.2/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 49, "args": [ "'product'", diff --git a/data/6.4/company.json b/data/6.4/company.json index 5f899ed..c271c84 100644 --- a/data/6.4/company.json +++ b/data/6.4/company.json @@ -2,6 +2,50 @@ "version": "6.4", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 21, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 22, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 50, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 51, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +55,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +71,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +88,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 85, "args": [ "table.id", @@ -51,6 +106,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" @@ -63,6 +122,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +139,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 90, "args": [ "table.id", @@ -91,6 +157,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 94, "args": [ "'main_company'" diff --git a/data/6.4/country.json b/data/6.4/country.json index c6d5e6c..3d036ff 100644 --- a/data/6.4/country.json +++ b/data/6.4/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 42, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 43, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 46, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 49, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 267, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 267, "args": [], "kwargs": { @@ -97,6 +118,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 271, "args": [ "'type'" @@ -115,9 +139,28 @@ "method": "__register__", "line": 328, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 330, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 332, "args": [ "'zip'", diff --git a/data/6.4/currency.json b/data/6.4/currency.json index 94c00dd..6480448 100644 --- a/data/6.4/currency.json +++ b/data/6.4/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 76, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 76, "args": [], "kwargs": { diff --git a/data/6.4/ir.json b/data/6.4/ir.json index c7a57d7..5971a3f 100644 --- a/data/6.4/ir.json +++ b/data/6.4/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_action_keyword" + ], "line": 170, "args": [ "['keyword', 'model']", @@ -31,6 +34,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 574, "args": [ "'report_name_module_uniq'" @@ -42,6 +48,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 577, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -53,6 +62,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 577, "args": [ "[action_report.extension]", @@ -75,6 +87,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 773, "args": [ "'auto_refresh'" @@ -86,6 +101,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 776, "args": [ "'window_name'" @@ -97,6 +115,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 779, "args": [ "'limit'", @@ -109,6 +130,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 780, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -120,6 +144,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 780, "args": [ "[act_window.limit]", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 967, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1006, "args": [ "'sequence'", @@ -182,6 +215,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -194,6 +230,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "[attachment.file_id]", @@ -209,6 +248,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -221,6 +263,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "[attachment.file_id]", @@ -236,6 +281,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 80, "args": [ "'digest'" @@ -248,6 +296,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'collision'" @@ -260,6 +311,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 84, "args": [ "'resource_name'" @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 98, "args": [ "'next_call'", @@ -299,6 +356,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 895, "args": [ "'name_model_uniq'" @@ -318,6 +378,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1237, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -329,6 +392,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1237, "args": [ "[model_data.module]", @@ -343,6 +409,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1243, "args": [ "'db_id'" @@ -361,9 +430,29 @@ "method": "__register__", "line": 96, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 106, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -375,6 +464,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "[sql_table.state]", @@ -389,6 +481,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -400,6 +495,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "[sql_table.state]", @@ -414,6 +512,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -425,6 +526,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "[model_data_sql_table.module]", @@ -438,15 +542,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 355, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 359, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 386, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 395, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -458,6 +607,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [], "kwargs": { @@ -471,6 +623,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 407, "args": [ "'sequence'", @@ -491,6 +646,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_queue" + ], "line": 43, "args": [ "[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]" @@ -512,6 +670,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -533,6 +694,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -545,6 +710,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "[table.sequence_type]", @@ -558,6 +727,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 132, "args": [ "sequence_type.id" @@ -572,6 +744,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 135, "args": [ "'code'" @@ -592,6 +767,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_session" + ], "line": 28, "args": [ "'create_uid'", @@ -612,6 +790,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 87, "args": [ "'translation_md5_uniq'" @@ -624,6 +805,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 88, "args": [ "'src_md5'" @@ -636,6 +820,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 93, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -647,6 +834,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 93, "args": [ "[ir_translation.type]", @@ -661,6 +851,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_translation" + ], "line": 99, "args": [ "['lang', 'type', 'name']", @@ -681,6 +874,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -693,6 +889,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 85, "args": [ "sql_table.id", @@ -708,6 +907,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "'minimum_delay'" @@ -720,6 +922,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 102, "args": [ "model.model" @@ -734,6 +939,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -746,6 +954,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 104, "args": [ "[sql_table.action]", @@ -759,6 +970,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 108, "args": [ "'action_model'" @@ -771,6 +985,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 109, "args": [ "'action_function'" @@ -791,6 +1008,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_trigger_log" + ], "line": 333, "args": [ "['trigger', 'record_id']", @@ -811,6 +1031,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 35, "args": [ "'sequence'", @@ -831,6 +1054,9 @@ { "object": "table_h", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_optional" + ], "line": 448, "args": [ "['view_id', 'user']", @@ -851,6 +1077,9 @@ { "object": "table", "operation": "index_action", + "tables": [ + "ir_ui_view_tree_state" + ], "line": 512, "args": [ "['model', 'domain', 'user', 'child_name']", @@ -871,6 +1100,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 585, "args": [ "'user'", diff --git a/data/6.4/party.json b/data/6.4/party.json index 7f021c5..d865d90 100644 --- a/data/6.4/party.json +++ b/data/6.4/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 82, "args": [ "'zip'", @@ -23,6 +26,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 93, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -35,6 +41,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 93, "args": [ "[sql_table.street]", @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 96, "args": [ "'streetbis'" @@ -68,6 +80,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 310, "args": [ "[table.country_code]", @@ -81,6 +97,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 312, "args": [ "country.code" @@ -95,6 +114,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 315, "args": [ "*query" @@ -107,6 +127,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 316, "args": [ "'country'" @@ -119,6 +142,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 320, "args": [ "[table.language_code]", @@ -132,6 +159,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 322, "args": [ "Substring(language.code, 0, 2)" @@ -146,6 +176,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 325, "args": [ "*query" @@ -158,6 +189,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 326, "args": [ "'language'" @@ -178,6 +212,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -188,6 +225,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 99, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 100, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -197,6 +254,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 108, "args": [ "'name'", @@ -214,9 +274,27 @@ "method": "__register__", "line": 356, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 360, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 369, "args": [ "[table.party, table.lang]", @@ -230,6 +308,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 371, "args": [ "party.id", @@ -243,6 +324,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 372, "args": [ "*query" @@ -255,6 +337,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 373, "args": [ "'lang'" @@ -275,6 +360,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 649, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -287,6 +375,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 649, "args": [ "party.id", @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 666, "args": [ "'vat_number'" @@ -315,6 +409,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 667, "args": [ "'vat_country'" @@ -327,6 +424,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 670, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -338,6 +438,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 670, "args": [ "[table.type]", diff --git a/data/6.4/product.json b/data/6.4/product.json index 87e45fc..047668d 100644 --- a/data/6.4/product.json +++ b/data/6.4/product.json @@ -2,6 +2,28 @@ "version": "6.4", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 54, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 55, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 435, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 435, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 638, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 639, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 669, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 676, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 677, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 692, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 694, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 734, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 741, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 748, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 755, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 758, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 765, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 765, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 768, "args": [ "'template'" diff --git a/data/6.4/production.json b/data/6.4/production.json index e776d90..67dce26 100644 --- a/data/6.4/production.json +++ b/data/6.4/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 75, "args": [ "'product_bom_uniq'" @@ -21,6 +24,28 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 44, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 45, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -30,6 +55,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 256, "args": [ "'code'", @@ -43,6 +71,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 262, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -54,6 +85,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 262, "args": [ "[table.planned_start_date]", @@ -68,6 +102,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 269, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -79,6 +116,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 269, "args": [ "[table.state]", diff --git a/data/6.4/res.json b/data/6.4/res.json index dc3ef37..6a7434e 100644 --- a/data/6.4/res.json +++ b/data/6.4/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 215, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 215, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 218, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 219, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 222, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "[model_data.noupdate]", diff --git a/data/6.4/stock_lot.json b/data/6.4/stock_lot.json index 7d216b7..1ee2378 100644 --- a/data/6.4/stock_lot.json +++ b/data/6.4/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 82, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 82, "args": [ "template_lot_type.template" diff --git a/data/6.4/stock_product_location.json b/data/6.4/stock_product_location.json index 3cfb1f8..136e582 100644 --- a/data/6.4/stock_product_location.json +++ b/data/6.4/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/6.6/company.json b/data/6.6/company.json index f5fc450..9f5a54e 100644 --- a/data/6.6/company.json +++ b/data/6.6/company.json @@ -2,6 +2,50 @@ "version": "6.6", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 21, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 22, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 50, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 51, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +55,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +71,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +88,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 85, "args": [ "table.id", @@ -51,6 +106,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" @@ -63,6 +122,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +139,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 90, "args": [ "table.id", @@ -91,6 +157,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 94, "args": [ "'main_company'" diff --git a/data/6.6/country.json b/data/6.6/country.json index 4feb56b..8704693 100644 --- a/data/6.6/country.json +++ b/data/6.6/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 189, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 190, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 193, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 196, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 196, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 444, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 444, "args": [], "kwargs": { @@ -97,6 +118,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 448, "args": [ "'type'" @@ -110,6 +134,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 451, "args": [ "'code'" @@ -128,9 +155,28 @@ "method": "__register__", "line": 516, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 518, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 520, "args": [ "'zip'", diff --git a/data/6.6/currency.json b/data/6.6/currency.json index e778b55..e09ea75 100644 --- a/data/6.6/currency.json +++ b/data/6.6/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 77, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 77, "args": [], "kwargs": { diff --git a/data/6.6/ir.json b/data/6.6/ir.json index 1b4e0a8..403078f 100644 --- a/data/6.6/ir.json +++ b/data/6.6/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 579, "args": [ "'report_name_module_uniq'" @@ -22,6 +25,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 582, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -33,6 +39,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 582, "args": [ "[action_report.extension]", @@ -55,6 +64,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 778, "args": [ "'auto_refresh'" @@ -66,6 +78,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 781, "args": [ "'window_name'" @@ -77,6 +92,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 784, "args": [ "'limit'", @@ -89,6 +107,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 785, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -100,6 +121,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 785, "args": [ "[act_window.limit]", @@ -122,6 +146,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 972, "args": [ "'sequence'", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1011, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -174,6 +207,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "[attachment.file_id]", @@ -189,6 +225,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -201,6 +240,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "[attachment.file_id]", @@ -216,6 +258,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 80, "args": [ "'digest'" @@ -228,6 +273,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'collision'" @@ -240,6 +288,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 84, "args": [ "'resource_name'" @@ -259,6 +310,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 103, "args": [ "'next_call'", @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 892, "args": [ "'name_model_uniq'" @@ -298,6 +355,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1217, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -309,6 +369,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1217, "args": [ "[model_data.module]", @@ -323,6 +386,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1223, "args": [ "'db_id'" @@ -341,9 +407,29 @@ "method": "__register__", "line": 96, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 106, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -355,6 +441,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 111, "args": [ "[sql_table.state]", @@ -369,6 +458,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -380,6 +472,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 114, "args": [ "[sql_table.state]", @@ -394,6 +489,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -405,6 +503,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 127, "args": [ "[model_data_sql_table.module]", @@ -418,15 +519,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 355, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 359, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 386, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 395, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -438,6 +584,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 396, "args": [], "kwargs": { @@ -451,6 +600,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 407, "args": [ "'sequence'", @@ -471,6 +623,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -492,6 +647,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -504,6 +663,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "[table.sequence_type]", @@ -517,6 +680,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 132, "args": [ "sequence_type.id" @@ -531,6 +697,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 135, "args": [ "'code'" @@ -551,6 +720,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 118, "args": [ "'translation_md5_uniq'" @@ -563,6 +735,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 119, "args": [ "'src_md5'" @@ -575,6 +750,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 124, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -586,6 +764,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 124, "args": [ "[ir_translation.type]", @@ -608,6 +789,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -620,6 +804,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 86, "args": [ "sql_table.id", @@ -635,6 +822,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 95, "args": [ "'minimum_delay'" @@ -647,6 +837,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 103, "args": [ "model.model" @@ -661,6 +854,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 105, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -673,6 +869,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 105, "args": [ "[sql_table.action]", @@ -686,6 +885,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 109, "args": [ "'action_model'" @@ -698,6 +900,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 110, "args": [ "'action_function'" @@ -718,6 +923,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 37, "args": [ "'sequence'", @@ -738,6 +946,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 606, "args": [ "'user'", diff --git a/data/6.6/party.json b/data/6.6/party.json index e4aeac8..a5f0d02 100644 --- a/data/6.6/party.json +++ b/data/6.6/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 91, "args": [ "'zip'", @@ -23,6 +26,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 102, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -35,6 +41,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 102, "args": [ "[sql_table.street]", @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 105, "args": [ "'streetbis'" @@ -68,6 +80,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 327, "args": [ "[table.country_code]", @@ -81,6 +97,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 329, "args": [ "country.code" @@ -95,6 +114,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 332, "args": [ "*query" @@ -107,6 +127,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 333, "args": [ "'country'" @@ -119,6 +142,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 337, "args": [ "[table.language_code]", @@ -132,6 +159,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 339, "args": [ "Substring(language.code, 0, 2)" @@ -146,6 +176,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 342, "args": [ "*query" @@ -158,6 +189,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 343, "args": [ "'language'" @@ -178,6 +212,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -188,6 +225,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 99, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 100, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -197,6 +254,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 116, "args": [ "'name'", @@ -214,9 +274,27 @@ "method": "__register__", "line": 345, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 349, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 358, "args": [ "[table.party, table.lang]", @@ -230,6 +308,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 360, "args": [ "party.id", @@ -243,6 +324,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 361, "args": [ "*query" @@ -255,6 +337,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 362, "args": [ "'lang'" @@ -275,6 +360,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 638, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -287,6 +375,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 638, "args": [ "party.id", @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 655, "args": [ "'vat_number'" @@ -315,6 +409,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 656, "args": [ "'vat_country'" @@ -327,6 +424,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -338,6 +438,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "[table.type]", diff --git a/data/6.6/product.json b/data/6.6/product.json index 613f8e4..62f42a5 100644 --- a/data/6.6/product.json +++ b/data/6.6/product.json @@ -2,6 +2,28 @@ "version": "6.6", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 54, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 55, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 455, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 455, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 677, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 678, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 708, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 715, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 716, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 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]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 730, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 732, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 772, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 779, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 786, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "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)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 793, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 796, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 803, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 803, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 806, "args": [ "'template'" diff --git a/data/6.6/production.json b/data/6.6/production.json index 6ee0016..4312c2f 100644 --- a/data/6.6/production.json +++ b/data/6.6/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 75, "args": [ "'product_bom_uniq'" @@ -21,6 +24,28 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 44, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 45, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -30,6 +55,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 272, "args": [ "'code'", @@ -43,6 +71,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 278, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -54,6 +85,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 278, "args": [ "[table.planned_start_date]", @@ -68,6 +102,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 285, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -79,6 +116,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 285, "args": [ "[table.state]", diff --git a/data/6.6/res.json b/data/6.6/res.json index 4dd68b6..7efb6aa 100644 --- a/data/6.6/res.json +++ b/data/6.6/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 215, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 215, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 218, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 219, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 222, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "[model_data.noupdate]", diff --git a/data/6.6/stock_lot.json b/data/6.6/stock_lot.json index 92ab02a..899c62d 100644 --- a/data/6.6/stock_lot.json +++ b/data/6.6/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 82, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 82, "args": [ "template_lot_type.template" diff --git a/data/6.6/stock_product_location.json b/data/6.6/stock_product_location.json index 49c2e60..a7c3324 100644 --- a/data/6.6/stock_product_location.json +++ b/data/6.6/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/6.8/company.json b/data/6.8/company.json index c02842f..28bc296 100644 --- a/data/6.8/company.json +++ b/data/6.8/company.json @@ -2,6 +2,50 @@ "version": "6.8", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "ConfigurationLang", + "method": "__register__", + "line": 21, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_configuration_party_lang" + ], + "line": 22, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, + { + "file": "/home/uha4/tmp/tryton/modules/company/party.py", + "class": "PartyLang", + "method": "__register__", + "line": 50, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 51, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +55,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +71,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 83, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +88,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 85, "args": [ "table.id", @@ -51,6 +106,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" @@ -63,6 +122,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 88, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +139,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 90, "args": [ "table.id", @@ -91,6 +157,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 94, "args": [ "'main_company'" diff --git a/data/6.8/country.json b/data/6.8/country.json index 63bb22e..6346b38 100644 --- a/data/6.8/country.json +++ b/data/6.8/country.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 189, "args": [ "'name_uniq'" @@ -22,6 +25,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "country_country" + ], "line": 190, "args": [ "'code_uniq'" @@ -33,6 +39,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "country_country" + ], "line": 193, "args": [ "'code'", @@ -45,6 +54,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 196, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -56,6 +68,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 196, "args": [], "kwargs": { @@ -75,6 +90,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 444, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -86,6 +104,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 444, "args": [], "kwargs": { @@ -97,6 +118,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 448, "args": [ "'type'" @@ -110,6 +134,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 451, "args": [ "'code'" @@ -128,9 +155,28 @@ "method": "__register__", "line": 516, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 518, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 520, "args": [ "'zip'", diff --git a/data/6.8/currency.json b/data/6.8/currency.json index 93cc750..21673b3 100644 --- a/data/6.8/currency.json +++ b/data/6.8/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 89, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 89, "args": [], "kwargs": { @@ -33,6 +39,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 93, "args": [ "'symbol'", diff --git a/data/6.8/ir.json b/data/6.8/ir.json index 613cabd..a321b14 100644 --- a/data/6.8/ir.json +++ b/data/6.8/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_action_report" + ], "line": 591, "args": [ "'report_name_module_uniq'" @@ -22,6 +25,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_report" + ], "line": 594, "args": [ "*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')" @@ -33,6 +39,9 @@ { "object": "action_report", "operation": "update", + "tables": [ + "ir_action_report" + ], "line": 594, "args": [ "[action_report.extension]", @@ -55,6 +64,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 782, "args": [ "'auto_refresh'" @@ -66,6 +78,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_action_act_window" + ], "line": 785, "args": [ "'window_name'" @@ -77,6 +92,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window" + ], "line": 788, "args": [ "'limit'", @@ -89,6 +107,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_action_act_window" + ], "line": 789, "args": [ "*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)" @@ -100,6 +121,9 @@ { "object": "act_window", "operation": "update", + "tables": [ + "ir_action_act_window" + ], "line": 789, "args": [ "[act_window.limit]", @@ -122,6 +146,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 985, "args": [ "'sequence'", @@ -142,6 +169,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1034, "args": [ "'sequence'", @@ -162,6 +192,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))" @@ -174,6 +207,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 69, "args": [ "[attachment.file_id]", @@ -189,6 +225,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))" @@ -201,6 +240,9 @@ { "object": "attachment", "operation": "update", + "tables": [ + "ir_attachment" + ], "line": 74, "args": [ "[attachment.file_id]", @@ -216,6 +258,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 80, "args": [ "'digest'" @@ -228,6 +273,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_attachment" + ], "line": 81, "args": [ "'collision'" @@ -240,6 +288,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_attachment" + ], "line": 84, "args": [ "'resource_name'" @@ -259,6 +310,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 103, "args": [ "'next_call'", @@ -279,6 +333,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 901, "args": [ "'name_model_uniq'" @@ -298,6 +355,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 1236, "args": [ "*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))" @@ -309,6 +369,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 1236, "args": [ "[model_data.module]", @@ -323,6 +386,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1242, "args": [ "'db_id'" @@ -341,9 +407,29 @@ "method": "__register__", "line": 97, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module", + "ir_module" + ], + "line": 107, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 112, "args": [ "*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')" @@ -355,6 +441,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 112, "args": [ "[sql_table.state]", @@ -369,6 +458,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_module" + ], "line": 115, "args": [ "*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')" @@ -380,6 +472,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_module" + ], "line": 115, "args": [ "[sql_table.state]", @@ -394,6 +489,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 128, "args": [ "*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))" @@ -405,6 +503,9 @@ { "object": "model_data_sql_table", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 128, "args": [ "[model_data_sql_table.module]", @@ -418,15 +519,60 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", + "class": "ModuleDependency", + "method": "__register__", + "line": 337, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_dependency", + "ir_module_dependency" + ], + "line": 341, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + } + ] + }, { "file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py", "class": "ModuleConfigWizardItem", "method": "__register__", "line": 370, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "ir_module_module_config_wizard_item", + "ir_module_config_wizard_item" + ], + "line": 379, + "args": [ + "old_table", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename(old_table, cls._table)", + "phase": "before_super", + "condition": "backend.TableHandler.table_exist(old_table)" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 380, "args": [ "*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')" @@ -438,6 +584,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 380, "args": [], "kwargs": { @@ -451,6 +600,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 391, "args": [ "'sequence'", @@ -471,6 +623,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -492,6 +647,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -504,6 +663,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 130, "args": [ "[table.sequence_type]", @@ -517,6 +680,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 132, "args": [ "sequence_type.id" @@ -531,6 +697,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 135, "args": [ "'code'" @@ -551,6 +720,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 119, "args": [ "'translation_md5_uniq'" @@ -563,6 +735,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 120, "args": [ "'src_md5'" @@ -575,6 +750,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_translation" + ], "line": 125, "args": [ "*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')" @@ -586,6 +764,9 @@ { "object": "ir_translation", "operation": "update", + "tables": [ + "ir_translation" + ], "line": 125, "args": [ "[ir_translation.type]", @@ -608,6 +789,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 91, "args": [ "*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)" @@ -620,6 +804,9 @@ { "object": "sql_table", "operation": "select", + "tables": [ + "ir_trigger" + ], "line": 91, "args": [ "sql_table.id", @@ -635,6 +822,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 100, "args": [ "'minimum_delay'" @@ -647,6 +837,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 108, "args": [ "model.model" @@ -661,6 +854,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 110, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -673,6 +869,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 110, "args": [ "[sql_table.action]", @@ -686,6 +885,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 114, "args": [ "'action_model'" @@ -698,6 +900,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 115, "args": [ "'action_function'" @@ -718,6 +923,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 37, "args": [ "'sequence'", @@ -738,6 +946,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 606, "args": [ "'user'", diff --git a/data/6.8/party.json b/data/6.8/party.json index 23a97f7..ac4ba1c 100644 --- a/data/6.8/party.json +++ b/data/6.8/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 91, "args": [ "'zip'", @@ -23,6 +26,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_address" + ], "line": 102, "args": [ "*sql_table.update([sql_table.street], [value])" @@ -35,6 +41,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "party_address" + ], "line": 102, "args": [ "[sql_table.street]", @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "party_address" + ], "line": 105, "args": [ "'streetbis'" @@ -68,6 +80,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 327, "args": [ "[table.country_code]", @@ -81,6 +97,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 329, "args": [ "country.code" @@ -95,6 +114,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 332, "args": [ "*query" @@ -107,6 +127,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 333, "args": [ "'country'" @@ -119,6 +142,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 337, "args": [ "[table.language_code]", @@ -132,6 +159,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 339, "args": [ "Substring(language.code, 0, 2)" @@ -146,6 +176,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 342, "args": [ "*query" @@ -158,6 +189,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 343, "args": [ "'language'" @@ -178,6 +212,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "party_category" + ], "line": 41, "args": [ "'name_parent_uniq'" @@ -188,6 +225,26 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/configuration.py", + "class": "_ConfigurationValue", + "method": "__register__", + "line": 99, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 100, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Party", @@ -197,6 +254,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "party_party" + ], "line": 116, "args": [ "'name'", @@ -214,9 +274,27 @@ "method": "__register__", "line": 345, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "party_party_lang" + ], + "line": 349, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "insert", + "tables": [ + "party_party_lang", + "party_party" + ], "line": 358, "args": [ "[table.party, table.lang]", @@ -230,6 +308,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 360, "args": [ "party.id", @@ -243,6 +324,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 361, "args": [ "*query" @@ -255,6 +337,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 362, "args": [ "'lang'" @@ -275,6 +360,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_party" + ], "line": 638, "args": [ "*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))" @@ -287,6 +375,9 @@ { "object": "party", "operation": "select", + "tables": [ + "party_party" + ], "line": 638, "args": [ "party.id", @@ -303,6 +394,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 655, "args": [ "'vat_number'" @@ -315,6 +409,9 @@ { "object": "party_h", "operation": "drop_column", + "tables": [ + "party_party" + ], "line": 656, "args": [ "'vat_country'" @@ -327,6 +424,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -338,6 +438,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 659, "args": [ "[table.type]", diff --git a/data/6.8/product.json b/data/6.8/product.json index b468af5..71bb3a4 100644 --- a/data/6.8/product.json +++ b/data/6.8/product.json @@ -2,6 +2,28 @@ "version": "6.8", "module": "product", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/product/configuration.py", + "class": "ConfigurationDefaultCostPriceMethod", + "method": "__register__", + "line": 54, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_configuration_default_cost_price_method" + ], + "line": 55, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "Product", @@ -11,6 +33,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 458, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +48,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 458, "args": [ "[table.suffix_code]", @@ -35,15 +63,67 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/product/product.py", + "class": "ProductListPrice", + "method": "__register__", + "line": 701, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_list_price" + ], + "line": 702, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/product/product.py", "class": "ProductCostPriceMethod", "method": "__register__", "line": 732, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price_method" + ], + "line": 739, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [], + "line": 740, + "args": [ + "ProductCostPrice._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(ProductCostPrice._table)", + "phase": "before_super" + }, { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 754, "args": [ "*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))" @@ -56,6 +136,10 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price_method", + "product_cost_price" + ], "line": 754, "args": [], "kwargs": { @@ -69,6 +153,9 @@ { "object": "cost_price", "operation": "select", + "tables": [ + "product_cost_price" + ], "line": 756, "args": [ "*[Column(cost_price, c) for c in columns]" @@ -86,9 +173,26 @@ "method": "__register__", "line": 796, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "product_cost_price" + ], + "line": 803, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + }, { "object": "table", "operation": "add_column", + "tables": [ + "product_cost_price" + ], "line": 810, "args": [ "'template'", @@ -102,6 +206,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 817, "args": [ "*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))" @@ -114,6 +221,9 @@ { "object": "sql_table", "operation": "insert", + "tables": [ + "product_cost_price" + ], "line": 817, "args": [], "kwargs": { @@ -127,6 +237,7 @@ { "object": "sql_table.join(product, condition=sql_table.template == product.template)", "operation": "select", + "tables": [], "line": 820, "args": [ "*[Column(sql_table, c) for c in columns] + [product.id]" @@ -141,6 +252,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_cost_price" + ], "line": 827, "args": [ "*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))" @@ -153,6 +267,9 @@ { "object": "sql_table", "operation": "delete", + "tables": [ + "product_cost_price" + ], "line": 827, "args": [], "kwargs": { @@ -165,6 +282,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "product_cost_price" + ], "line": 830, "args": [ "'template'" diff --git a/data/6.8/production.json b/data/6.8/production.json index ddadabe..ca030a4 100644 --- a/data/6.8/production.json +++ b/data/6.8/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 75, "args": [ "'product_bom_uniq'" @@ -21,6 +24,28 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/production/configuration.py", + "class": "ConfigurationProductionSequence", + "method": "__register__", + "line": 44, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_exist", + "tables": [ + "production_configuration_production_sequence" + ], + "line": 45, + "args": [ + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_exist(cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/production/production.py", "class": "Production", @@ -30,6 +55,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 269, "args": [ "'code'", @@ -43,6 +71,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 275, "args": [ "*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))" @@ -54,6 +85,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 275, "args": [ "[table.planned_start_date]", @@ -68,6 +102,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 282, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -79,6 +116,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 282, "args": [ "[table.state]", diff --git a/data/6.8/res.json b/data/6.8/res.json index d181706..cd3544c 100644 --- a/data/6.8/res.json +++ b/data/6.8/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user" + ], "line": 215, "args": [ "*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])" @@ -23,6 +26,9 @@ { "object": "sqltable", "operation": "update", + "tables": [ + "res_user" + ], "line": 215, "args": [], "kwargs": { @@ -36,6 +42,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 218, "args": [ "'password'" @@ -48,6 +57,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 219, "args": [ "'salt'" @@ -60,6 +72,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 222, "args": [ "'name'" @@ -73,6 +88,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -84,6 +102,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 225, "args": [ "[model_data.noupdate]", diff --git a/data/6.8/stock_lot.json b/data/6.8/stock_lot.json index 6275489..27f5d4b 100644 --- a/data/6.8/stock_lot.json +++ b/data/6.8/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 85, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 85, "args": [ "template_lot_type.template" diff --git a/data/6.8/stock_product_location.json b/data/6.8/stock_product_location.json index b0a6ee8..ad13416 100644 --- a/data/6.8/stock_product_location.json +++ b/data/6.8/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/7.0/company.json b/data/7.0/company.json index edce1e3..bcc5bf7 100644 --- a/data/7.0/company.json +++ b/data/7.0/company.json @@ -11,6 +11,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 130, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +27,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 130, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +44,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 132, "args": [ "table.id", @@ -51,6 +62,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "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)))" @@ -63,6 +78,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 135, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +95,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 137, "args": [ "table.id", @@ -91,6 +113,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 141, "args": [ "'main_company'" diff --git a/data/7.0/country.json b/data/7.0/country.json index 6abb2ee..a7a399a 100644 --- a/data/7.0/country.json +++ b/data/7.0/country.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [], "kwargs": { @@ -41,6 +47,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -52,6 +61,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [], "kwargs": { @@ -63,6 +75,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 439, "args": [ "'type'" @@ -76,6 +91,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 442, "args": [ "'code'" @@ -94,9 +112,28 @@ "method": "__register__", "line": 507, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 509, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 511, "args": [ "'zip'", diff --git a/data/7.0/currency.json b/data/7.0/currency.json index 9ef366a..0580794 100644 --- a/data/7.0/currency.json +++ b/data/7.0/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 83, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 83, "args": [], "kwargs": { @@ -33,6 +39,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 87, "args": [ "'symbol'", diff --git a/data/7.0/ir.json b/data/7.0/ir.json index 5d276a3..372c829 100644 --- a/data/7.0/ir.json +++ b/data/7.0/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 958, "args": [ "'sequence'", @@ -31,6 +34,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1007, "args": [ "'sequence'", @@ -51,6 +57,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 103, "args": [ "'next_call'", @@ -71,6 +80,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "*table.update([table.user], [table.create_uid])" @@ -83,6 +95,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "[table.user]", @@ -104,6 +119,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 893, "args": [ "'name_model_uniq'" @@ -123,6 +141,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1225, "args": [ "'db_id'" @@ -144,6 +165,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 329, "args": [ "'sequence'", @@ -164,6 +188,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -185,6 +212,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -197,6 +228,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "[table.sequence_type]", @@ -210,6 +245,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 137, "args": [ "sequence_type.id" @@ -224,6 +262,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 140, "args": [ "'code'" @@ -244,6 +285,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 120, "args": [ "'translation_md5_uniq'" @@ -256,6 +300,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 121, "args": [ "'src_md5'" @@ -276,6 +323,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 92, "args": [ "model.model" @@ -290,6 +340,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -302,6 +355,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "[sql_table.action]", @@ -315,6 +371,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 98, "args": [ "'action_model'" @@ -327,6 +386,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 99, "args": [ "'action_function'" @@ -347,6 +409,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 37, "args": [ "'sequence'", @@ -367,6 +432,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 621, "args": [ "'user'", diff --git a/data/7.0/party.json b/data/7.0/party.json index 99525ac..c019d70 100644 --- a/data/7.0/party.json +++ b/data/7.0/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 88, "args": [ "'zip'", @@ -31,6 +34,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 318, "args": [ "[table.country_code]", @@ -44,6 +51,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 320, "args": [ "country.code" @@ -58,6 +68,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 323, "args": [ "*query" @@ -70,6 +81,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 324, "args": [ "'country'" @@ -82,6 +96,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 328, "args": [ "[table.language_code]", @@ -95,6 +113,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 330, "args": [ "Substring(language.code, 0, 2)" @@ -109,6 +130,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 333, "args": [ "*query" @@ -121,6 +143,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 334, "args": [ "'language'" @@ -141,6 +166,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -153,6 +181,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "[table.identifier_types]", @@ -174,6 +205,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 787, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -185,6 +219,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 787, "args": [ "[table.type]", diff --git a/data/7.0/product.json b/data/7.0/product.json index 646dc9b..ab62a2b 100644 --- a/data/7.0/product.json +++ b/data/7.0/product.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 505, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 505, "args": [ "[table.suffix_code]", diff --git a/data/7.0/production.json b/data/7.0/production.json index 118c315..dff6194 100644 --- a/data/7.0/production.json +++ b/data/7.0/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 78, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 84, "args": [ "'product_bom_uniq'" @@ -43,6 +49,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 270, "args": [ "'uom'", @@ -56,6 +65,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 278, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -67,6 +79,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 278, "args": [ "[table.state]", diff --git a/data/7.0/res.json b/data/7.0/res.json index 18582d5..52f4b0c 100644 --- a/data/7.0/res.json +++ b/data/7.0/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 215, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -22,6 +25,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 215, "args": [ "[model_data.noupdate]", diff --git a/data/7.0/stock_lot.json b/data/7.0/stock_lot.json index 86bb83f..668e7a6 100644 --- a/data/7.0/stock_lot.json +++ b/data/7.0/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 85, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 85, "args": [ "template_lot_type.template" diff --git a/data/7.0/stock_product_location.json b/data/7.0/stock_product_location.json index 6767e74..a62c8e2 100644 --- a/data/7.0/stock_product_location.json +++ b/data/7.0/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/7.2/company.json b/data/7.2/company.json index 3a7e8ea..17e5de6 100644 --- a/data/7.2/company.json +++ b/data/7.2/company.json @@ -2,6 +2,30 @@ "version": "7.2", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/ir.py", + "class": "CronCompany", + "method": "__register__", + "line": 102, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "cron_company_rel", + "ir_cron-company_company" + ], + "line": 104, + "args": [ + "'cron_company_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +35,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 130, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +51,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 130, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +68,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 132, "args": [ "table.id", @@ -51,6 +86,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "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)))" @@ -63,6 +102,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 135, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +119,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 137, "args": [ "table.id", @@ -91,6 +137,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 141, "args": [ "'main_company'" diff --git a/data/7.2/country.json b/data/7.2/country.json index b872478..a277a34 100644 --- a/data/7.2/country.json +++ b/data/7.2/country.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [], "kwargs": { @@ -41,6 +47,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -52,6 +61,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [], "kwargs": { @@ -63,6 +75,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 439, "args": [ "'type'" @@ -76,6 +91,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 442, "args": [ "'code'" @@ -94,9 +112,28 @@ "method": "__register__", "line": 507, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 509, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 511, "args": [ "'zip'", diff --git a/data/7.2/currency.json b/data/7.2/currency.json index 560c712..3f7973b 100644 --- a/data/7.2/currency.json +++ b/data/7.2/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 83, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 83, "args": [], "kwargs": { @@ -33,6 +39,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 87, "args": [ "'symbol'", diff --git a/data/7.2/ir.json b/data/7.2/ir.json index cde0771..73a9a88 100644 --- a/data/7.2/ir.json +++ b/data/7.2/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 968, "args": [ "'sequence'", @@ -31,6 +34,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1017, "args": [ "'sequence'", @@ -51,6 +57,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 103, "args": [ "'next_call'", @@ -71,6 +80,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "*table.update([table.user], [table.create_uid])" @@ -83,6 +95,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "[table.user]", @@ -104,6 +119,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 309, "args": [ "'model'", @@ -117,6 +135,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field" + ], "line": 310, "args": [ "'model'", @@ -130,6 +151,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field" + ], "line": 311, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -142,6 +166,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field" + ], "line": 311, "args": [ "[table.model]", @@ -158,6 +185,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field" + ], "line": 315, "args": [ "'_temp_model'" @@ -178,6 +208,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_access" + ], "line": 543, "args": [ "'model'", @@ -191,6 +224,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_access" + ], "line": 544, "args": [ "'model'", @@ -204,6 +240,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_access" + ], "line": 545, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -216,6 +255,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_access" + ], "line": 545, "args": [ "[table.model]", @@ -232,6 +274,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_access" + ], "line": 549, "args": [ "'_temp_model'" @@ -252,6 +297,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field_access" + ], "line": 798, "args": [ "'field'", @@ -265,6 +313,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 799, "args": [ "'model'", @@ -278,6 +329,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 800, "args": [ "'field'", @@ -291,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field_access" + ], "line": 801, "args": [ "*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)" @@ -303,6 +360,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field_access" + ], "line": 801, "args": [ "[table.model, table.field]", @@ -319,6 +379,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field_access" + ], "line": 806, "args": [ "'_temp_field'" @@ -339,6 +402,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_button" + ], "line": 997, "args": [ "'model'", @@ -352,6 +418,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_button" + ], "line": 998, "args": [ "'model'", @@ -365,6 +434,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_button" + ], "line": 999, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -377,6 +449,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_button" + ], "line": 999, "args": [ "[table.model]", @@ -393,6 +468,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_button" + ], "line": 1003, "args": [ "'_temp_model'" @@ -405,6 +483,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 1008, "args": [ "'name_model_uniq'" @@ -424,6 +505,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1346, "args": [ "'db_id'" @@ -445,6 +529,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 329, "args": [ "'sequence'", @@ -465,6 +552,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_rule_group" + ], "line": 96, "args": [ "'model'", @@ -478,6 +568,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_rule_group" + ], "line": 97, "args": [ "'model'", @@ -491,6 +584,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_rule_group" + ], "line": 98, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -503,6 +599,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_rule_group" + ], "line": 98, "args": [ "[table.model]", @@ -519,6 +618,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_rule_group" + ], "line": 102, "args": [ "'_temp_model'" @@ -539,6 +641,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -560,6 +665,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -572,6 +681,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "[table.sequence_type]", @@ -585,6 +698,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 137, "args": [ "sequence_type.id" @@ -599,6 +715,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 140, "args": [ "'code'" @@ -619,6 +738,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 127, "args": [ "'translation_md5_uniq'" @@ -631,6 +753,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 128, "args": [ "'src_md5'" @@ -651,6 +776,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 92, "args": [ "model.model" @@ -665,6 +793,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -677,6 +808,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "[sql_table.action]", @@ -690,6 +824,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 98, "args": [ "'action_model'" @@ -702,6 +839,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 99, "args": [ "'action_function'" @@ -722,6 +862,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 41, "args": [ "'sequence'", @@ -742,6 +885,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 713, "args": [ "'user'", diff --git a/data/7.2/party.json b/data/7.2/party.json index 542a65c..51ca4f1 100644 --- a/data/7.2/party.json +++ b/data/7.2/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 88, "args": [ "'zip'", @@ -31,6 +34,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 318, "args": [ "[table.country_code]", @@ -44,6 +51,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 320, "args": [ "country.code" @@ -58,6 +68,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 323, "args": [ "*query" @@ -70,6 +81,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 324, "args": [ "'country'" @@ -82,6 +96,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 328, "args": [ "[table.language_code]", @@ -95,6 +113,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 330, "args": [ "Substring(language.code, 0, 2)" @@ -109,6 +130,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 333, "args": [ "*query" @@ -121,6 +143,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 334, "args": [ "'language'" @@ -141,6 +166,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -153,6 +181,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "[table.identifier_types]", @@ -165,6 +196,30 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyCategory", + "method": "__register__", + "line": 448, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "party_category_rel", + "party_party-party_category" + ], + "line": 450, + "args": [ + "'party_category_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('party_category_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Identifier", @@ -174,6 +229,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 812, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -185,6 +243,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 812, "args": [ "[table.type]", diff --git a/data/7.2/product.json b/data/7.2/product.json index 4e863ae..00783a4 100644 --- a/data/7.2/product.json +++ b/data/7.2/product.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 488, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 488, "args": [ "[table.suffix_code]", diff --git a/data/7.2/production.json b/data/7.2/production.json index 9e3fa81..84eeec4 100644 --- a/data/7.2/production.json +++ b/data/7.2/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 78, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 84, "args": [ "'product_bom_uniq'" @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" @@ -54,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "[table.method]", @@ -76,6 +88,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 271, "args": [ "'uom'", @@ -89,6 +104,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 279, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -100,6 +118,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 279, "args": [ "[table.state]", diff --git a/data/7.2/res.json b/data/7.2/res.json index 73d6b8b..7a2f4d8 100644 --- a/data/7.2/res.json +++ b/data/7.2/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -22,6 +25,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "[model_data.noupdate]", diff --git a/data/7.2/stock_lot.json b/data/7.2/stock_lot.json index 5e61125..8335b52 100644 --- a/data/7.2/stock_lot.json +++ b/data/7.2/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 85, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 85, "args": [ "template_lot_type.template" diff --git a/data/7.2/stock_product_location.json b/data/7.2/stock_product_location.json index 740fab6..cdaa919 100644 --- a/data/7.2/stock_product_location.json +++ b/data/7.2/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/7.4/company.json b/data/7.4/company.json index 8568d1e..997431d 100644 --- a/data/7.4/company.json +++ b/data/7.4/company.json @@ -2,6 +2,30 @@ "version": "7.4", "module": "company", "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/ir.py", + "class": "CronCompany", + "method": "__register__", + "line": 107, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "cron_company_rel", + "ir_cron-company_company" + ], + "line": 109, + "args": [ + "'cron_company_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/company/res.py", "class": "User", @@ -11,6 +35,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 139, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))" @@ -23,6 +51,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 139, "args": [ "[user_company.user, user_company.company]", @@ -36,6 +68,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 141, "args": [ "table.id", @@ -51,6 +86,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 144, "args": [ "*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))" @@ -63,6 +102,10 @@ { "object": "user_company", "operation": "insert", + "tables": [ + "res_user-company_company", + "res_user" + ], "line": 144, "args": [ "[user_company.user, user_company.company]", @@ -76,6 +119,9 @@ { "object": "table", "operation": "select", + "tables": [ + "res_user" + ], "line": 146, "args": [ "table.id", @@ -91,6 +137,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "res_user" + ], "line": 150, "args": [ "'main_company'" diff --git a/data/7.4/country.json b/data/7.4/country.json index 2d5967f..d7e9c0a 100644 --- a/data/7.4/country.json +++ b/data/7.4/country.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 187, "args": [], "kwargs": { @@ -41,6 +47,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [ "*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))" @@ -52,6 +61,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 435, "args": [], "kwargs": { @@ -63,6 +75,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 439, "args": [ "'type'" @@ -76,6 +91,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 442, "args": [ "'code'" @@ -94,9 +112,28 @@ "method": "__register__", "line": 507, "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "country_zip", + "country_postal_code" + ], + "line": 509, + "args": [ + "'country_zip'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('country_zip', cls._table)", + "phase": "before_super" + }, { "object": "table_h", "operation": "column_rename", + "tables": [ + "country_postal_code" + ], "line": 511, "args": [ "'zip'", diff --git a/data/7.4/currency.json b/data/7.4/currency.json index aae5523..5c2f383 100644 --- a/data/7.4/currency.json +++ b/data/7.4/currency.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 89, "args": [ "*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))" @@ -22,6 +25,9 @@ { "object": "data", "operation": "delete", + "tables": [ + "ir_model_data" + ], "line": 89, "args": [], "kwargs": { @@ -33,6 +39,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 93, "args": [ "'symbol'", @@ -53,6 +62,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "currency_currency_rate" + ], "line": 309, "args": [ "'check_currency_rate'" diff --git a/data/7.4/ir.json b/data/7.4/ir.json index c2266ad..a709560 100644 --- a/data/7.4/ir.json +++ b/data/7.4/ir.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_view" + ], "line": 963, "args": [ "'sequence'", @@ -31,6 +34,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_action_act_window_domain" + ], "line": 1012, "args": [ "'sequence'", @@ -51,6 +57,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_cron" + ], "line": 130, "args": [ "'next_call'", @@ -71,6 +80,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "*table.update([table.user], [table.create_uid])" @@ -83,6 +95,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 67, "args": [ "[table.user]", @@ -104,6 +119,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 309, "args": [ "'model'", @@ -117,6 +135,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field" + ], "line": 310, "args": [ "'model'", @@ -130,6 +151,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field" + ], "line": 311, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -142,6 +166,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field" + ], "line": 311, "args": [ "[table.model]", @@ -158,6 +185,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field" + ], "line": 315, "args": [ "'_temp_model'" @@ -178,6 +208,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_access" + ], "line": 546, "args": [ "'model'", @@ -191,6 +224,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_access" + ], "line": 547, "args": [ "'model'", @@ -204,6 +240,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_access" + ], "line": 548, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -216,6 +255,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_access" + ], "line": 548, "args": [ "[table.model]", @@ -232,6 +274,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_access" + ], "line": 552, "args": [ "'_temp_model'" @@ -252,6 +297,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field_access" + ], "line": 801, "args": [ "'field'", @@ -265,6 +313,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 802, "args": [ "'model'", @@ -278,6 +329,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 803, "args": [ "'field'", @@ -291,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field_access" + ], "line": 804, "args": [ "*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)" @@ -303,6 +360,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field_access" + ], "line": 804, "args": [ "[table.model, table.field]", @@ -319,6 +379,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field_access" + ], "line": 809, "args": [ "'_temp_field'" @@ -339,6 +402,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_button" + ], "line": 1000, "args": [ "'model'", @@ -352,6 +418,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_button" + ], "line": 1001, "args": [ "'model'", @@ -365,6 +434,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_button" + ], "line": 1002, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -377,6 +449,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_button" + ], "line": 1002, "args": [ "[table.model]", @@ -393,6 +468,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_button" + ], "line": 1006, "args": [ "'_temp_model'" @@ -405,6 +483,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 1011, "args": [ "'name_model_uniq'" @@ -424,6 +505,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_model_data" + ], "line": 1350, "args": [ "'db_id'" @@ -445,6 +529,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_module_config_wizard_item" + ], "line": 329, "args": [ "'sequence'", @@ -465,6 +552,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_rule_group" + ], "line": 96, "args": [ "'model'", @@ -478,6 +568,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_rule_group" + ], "line": 97, "args": [ "'model'", @@ -491,6 +584,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_rule_group" + ], "line": 98, "args": [ "*table.update([table.model], [model.model], from_=[model], where=table._temp_model == model.id)" @@ -503,6 +599,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_rule_group" + ], "line": 98, "args": [ "[table.model]", @@ -519,6 +618,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_rule_group" + ], "line": 102, "args": [ "'_temp_model'" @@ -539,6 +641,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_sequence_type" + ], "line": 47, "args": [ "'code'" @@ -560,6 +665,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))" @@ -572,6 +681,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_sequence", + "ir_sequence_type" + ], "line": 135, "args": [ "[table.sequence_type]", @@ -585,6 +698,9 @@ { "object": "sequence_type", "operation": "select", + "tables": [ + "ir_sequence_type" + ], "line": 137, "args": [ "sequence_type.id" @@ -599,6 +715,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_sequence" + ], "line": 140, "args": [ "'code'" @@ -619,6 +738,9 @@ { "object": "table", "operation": "drop_constraint", + "tables": [ + "ir_translation" + ], "line": 127, "args": [ "'translation_md5_uniq'" @@ -631,6 +753,9 @@ { "object": "table", "operation": "drop_column", + "tables": [ + "ir_translation" + ], "line": 128, "args": [ "'src_md5'" @@ -651,6 +776,9 @@ { "object": "model", "operation": "select", + "tables": [ + "ir_model" + ], "line": 92, "args": [ "model.model" @@ -665,6 +793,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])" @@ -677,6 +808,9 @@ { "object": "sql_table", "operation": "update", + "tables": [ + "ir_trigger" + ], "line": 94, "args": [ "[sql_table.action]", @@ -690,6 +824,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 98, "args": [ "'action_model'" @@ -702,6 +839,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_trigger" + ], "line": 99, "args": [ "'action_function'" @@ -722,6 +862,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "ir_ui_icon" + ], "line": 41, "args": [ "'sequence'", @@ -742,6 +885,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_ui_view_tree_optional" + ], "line": 579, "args": [ "'view_id'", @@ -754,6 +900,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 584, "args": [ "*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)" @@ -765,6 +915,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 584, "args": [ "[table.model]", @@ -779,6 +933,9 @@ { "object": "view", "operation": "select", + "tables": [ + "ir_ui_view" + ], "line": 586, "args": [ "view.model" @@ -800,6 +957,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_search" + ], "line": 762, "args": [ "'user'", diff --git a/data/7.4/party.json b/data/7.4/party.json index 2c57282..4fccae4 100644 --- a/data/7.4/party.json +++ b/data/7.4/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 88, "args": [ "'zip'", @@ -31,6 +34,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "country_country" + ], "line": 318, "args": [ "[table.country_code]", @@ -44,6 +51,9 @@ { "object": "country", "operation": "select", + "tables": [ + "country_country" + ], "line": 320, "args": [ "country.code" @@ -58,6 +68,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 323, "args": [ "*query" @@ -70,6 +81,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 324, "args": [ "'country'" @@ -82,6 +96,10 @@ { "object": "table", "operation": "update", + "tables": [ + "party_address_format", + "ir_lang" + ], "line": 328, "args": [ "[table.language_code]", @@ -95,6 +113,9 @@ { "object": "language", "operation": "select", + "tables": [ + "ir_lang" + ], "line": 330, "args": [ "Substring(language.code, 0, 2)" @@ -109,6 +130,7 @@ { "object": "cursor", "operation": "execute", + "tables": [], "line": 333, "args": [ "*query" @@ -121,6 +143,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "party_address_format" + ], "line": 334, "args": [ "'language'" @@ -141,6 +166,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -153,6 +181,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 45, "args": [ "[table.identifier_types]", @@ -165,6 +196,30 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyCategory", + "method": "__register__", + "line": 452, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "party_category_rel", + "party_party-party_category" + ], + "line": 454, + "args": [ + "'party_category_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('party_category_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Identifier", @@ -174,6 +229,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 830, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" @@ -185,6 +243,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 830, "args": [ "[table.type]", @@ -199,6 +260,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 841, "args": [ "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" @@ -210,6 +274,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 841, "args": [ "[table.type]", diff --git a/data/7.4/product.json b/data/7.4/product.json index 672f868..63e29b5 100644 --- a/data/7.4/product.json +++ b/data/7.4/product.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "product_product" + ], "line": 516, "args": [ "*table.update([table.suffix_code], [table.code])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "product_product" + ], "line": 516, "args": [ "[table.suffix_code]", diff --git a/data/7.4/production.json b/data/7.4/production.json index e3cfc88..4a25879 100644 --- a/data/7.4/production.json +++ b/data/7.4/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 152, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 158, "args": [ "'product_bom_uniq'" @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" @@ -54,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "[table.method]", @@ -76,6 +88,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 272, "args": [ "'uom'", @@ -89,6 +104,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "production" + ], "line": 280, "args": [ "*table.update([table.state], ['cancelled'], where=table.state == 'cancel')" @@ -100,6 +118,9 @@ { "object": "table", "operation": "update", + "tables": [ + "production" + ], "line": 280, "args": [ "[table.state]", diff --git a/data/7.4/res.json b/data/7.4/res.json index 0718bc2..0f47953 100644 --- a/data/7.4/res.json +++ b/data/7.4/res.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))" @@ -22,6 +25,9 @@ { "object": "model_data", "operation": "update", + "tables": [ + "ir_model_data" + ], "line": 214, "args": [ "[model_data.noupdate]", diff --git a/data/7.4/stock_lot.json b/data/7.4/stock_lot.json index ad6206d..6a3d6db 100644 --- a/data/7.4/stock_lot.json +++ b/data/7.4/stock_lot.json @@ -11,6 +11,7 @@ { "object": "cursor_select", "operation": "execute", + "tables": [], "line": 85, "args": [ "*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)" @@ -23,6 +24,7 @@ { "object": "template_lot_type", "operation": "select", + "tables": [], "line": 85, "args": [ "template_lot_type.template" diff --git a/data/7.4/stock_product_location.json b/data/7.4/stock_product_location.json index e881d9e..4b40859 100644 --- a/data/7.4/stock_product_location.json +++ b/data/7.4/stock_product_location.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "not_null_action", + "tables": [ + "stock_product_location" + ], "line": 47, "args": [ "'product'", diff --git a/data/7.6/company.json b/data/7.6/company.json index 7274aa3..f55925b 100644 --- a/data/7.6/company.json +++ b/data/7.6/company.json @@ -1,5 +1,30 @@ { "version": "7.6", "module": "company", - "files": [] + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/ir.py", + "class": "CronCompany", + "method": "__register__", + "line": 106, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "cron_company_rel", + "ir_cron-company_company" + ], + "line": 108, + "args": [ + "'cron_company_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)", + "phase": "before_super" + } + ] + } + ] } \ No newline at end of file diff --git a/data/7.6/country.json b/data/7.6/country.json index 198a195..f80ee20 100644 --- a/data/7.6/country.json +++ b/data/7.6/country.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 407, "args": [ "'type'" @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 410, "args": [ "'code'" diff --git a/data/7.6/currency.json b/data/7.6/currency.json index 7183b14..554a8cd 100644 --- a/data/7.6/currency.json +++ b/data/7.6/currency.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 83, "args": [ "'symbol'", @@ -31,6 +34,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "currency_currency_rate" + ], "line": 294, "args": [ "'check_currency_rate'" diff --git a/data/7.6/ir.json b/data/7.6/ir.json index 1cfa9e9..db2f4b0 100644 --- a/data/7.6/ir.json +++ b/data/7.6/ir.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "*table.update([table.user], [table.create_uid])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "[table.user]", @@ -44,6 +50,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 89, "args": [ "'name'", @@ -57,6 +66,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 90, "args": [ "'model'", @@ -70,6 +82,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model" + ], "line": 91, "args": [ "'model_uniq'" @@ -89,6 +104,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 332, "args": [ "'model'", @@ -102,6 +120,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field" + ], "line": 333, "args": [ "'model'", @@ -115,6 +136,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field" + ], "line": 334, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -127,6 +151,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field" + ], "line": 334, "args": [ "[table.model]", @@ -143,6 +170,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field" + ], "line": 338, "args": [ "'_temp_model'" @@ -155,6 +185,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 341, "args": [ "'field_description'", @@ -175,6 +208,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_access" + ], "line": 563, "args": [ "'model'", @@ -188,6 +224,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_access" + ], "line": 564, "args": [ "'model'", @@ -201,6 +240,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_access" + ], "line": 565, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -213,6 +255,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_access" + ], "line": 565, "args": [ "[table.model]", @@ -229,6 +274,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_access" + ], "line": 569, "args": [ "'_temp_model'" @@ -249,6 +297,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field_access" + ], "line": 801, "args": [ "'field'", @@ -262,6 +313,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 802, "args": [ "'model'", @@ -275,6 +329,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 803, "args": [ "'field'", @@ -288,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field_access" + ], "line": 804, "args": [ "*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)" @@ -300,6 +360,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field_access" + ], "line": 804, "args": [ "[table.model, table.field]", @@ -316,6 +379,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field_access" + ], "line": 809, "args": [ "'_temp_field'" @@ -336,6 +402,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_button" + ], "line": 989, "args": [ "'model'", @@ -349,6 +418,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_button" + ], "line": 990, "args": [ "'model'", @@ -362,6 +434,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_button" + ], "line": 991, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -374,6 +449,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_button" + ], "line": 991, "args": [ "[table.model]", @@ -390,6 +468,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_button" + ], "line": 995, "args": [ "'_temp_model'" @@ -402,6 +483,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 1000, "args": [ "'name_model_uniq'" @@ -421,6 +505,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_data" + ], "line": 1340, "args": [ "'fs_id_module_model_uniq'" @@ -440,6 +527,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_rule_group" + ], "line": 112, "args": [ "'model'", @@ -453,6 +543,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_rule_group" + ], "line": 113, "args": [ "'model'", @@ -466,6 +559,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_rule_group" + ], "line": 114, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -478,6 +574,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_rule_group" + ], "line": 114, "args": [ "[table.model]", @@ -494,6 +593,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_rule_group" + ], "line": 118, "args": [ "'_temp_model'" @@ -514,6 +616,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_ui_view_tree_optional" + ], "line": 637, "args": [ "'view_id'", @@ -526,6 +631,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 642, "args": [ "*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)" @@ -537,6 +646,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 642, "args": [ "[table.model]", @@ -551,6 +664,9 @@ { "object": "view", "operation": "select", + "tables": [ + "ir_ui_view" + ], "line": 644, "args": [ "view.model" diff --git a/data/7.6/party.json b/data/7.6/party.json index ed0d893..fa5dc9b 100644 --- a/data/7.6/party.json +++ b/data/7.6/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 165, "args": [ "'street'", @@ -23,6 +26,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 166, "args": [ "'name'", @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -55,6 +64,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "[table.identifier_types]", @@ -67,6 +79,30 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyCategory", + "method": "__register__", + "line": 448, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "party_category_rel", + "party_party-party_category" + ], + "line": 450, + "args": [ + "'party_category_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('party_category_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Identifier", @@ -76,6 +112,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 839, "args": [ "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" @@ -87,6 +126,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 839, "args": [ "[table.type]", @@ -101,6 +143,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 843, "args": [ "*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')" @@ -112,6 +157,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 843, "args": [ "[table.type]", diff --git a/data/7.6/production.json b/data/7.6/production.json index 56aa06a..e7ce461 100644 --- a/data/7.6/production.json +++ b/data/7.6/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 148, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 154, "args": [ "'product_bom_uniq'" @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" @@ -54,6 +63,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "[table.method]", @@ -76,6 +88,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 273, "args": [ "'uom'", diff --git a/data/7.6/res.json b/data/7.6/res.json index 0fa401f..14947ee 100644 --- a/data/7.6/res.json +++ b/data/7.6/res.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 200, "args": [ "'menu'", diff --git a/data/7.8/company.json b/data/7.8/company.json index e91fe3e..7c2e369 100644 --- a/data/7.8/company.json +++ b/data/7.8/company.json @@ -1,5 +1,30 @@ { "version": "7.8", "module": "company", - "files": [] + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/ir.py", + "class": "CronCompany", + "method": "__register__", + "line": 106, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "cron_company_rel", + "ir_cron-company_company" + ], + "line": 108, + "args": [ + "'cron_company_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)", + "phase": "before_super" + } + ] + } + ] } \ No newline at end of file diff --git a/data/7.8/country.json b/data/7.8/country.json index d8d222e..07f5a64 100644 --- a/data/7.8/country.json +++ b/data/7.8/country.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 407, "args": [ "'type'" @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 410, "args": [ "'code'" diff --git a/data/7.8/currency.json b/data/7.8/currency.json index 9f58c27..e9f9847 100644 --- a/data/7.8/currency.json +++ b/data/7.8/currency.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 83, "args": [ "'symbol'", @@ -31,6 +34,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "currency_currency_rate" + ], "line": 283, "args": [ "'check_currency_rate'" diff --git a/data/7.8/ir.json b/data/7.8/ir.json index 4e1ecd5..38fc9d1 100644 --- a/data/7.8/ir.json +++ b/data/7.8/ir.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "*table.update([table.user], [table.create_uid])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "[table.user]", @@ -44,6 +50,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 90, "args": [ "'name'", @@ -57,6 +66,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 91, "args": [ "'model'", @@ -70,6 +82,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model" + ], "line": 92, "args": [ "'model_uniq'" @@ -89,6 +104,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 342, "args": [ "'model'", @@ -102,6 +120,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field" + ], "line": 343, "args": [ "'model'", @@ -115,6 +136,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field" + ], "line": 344, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -127,6 +151,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field" + ], "line": 344, "args": [ "[table.model]", @@ -143,6 +170,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field" + ], "line": 348, "args": [ "'_temp_model'" @@ -155,6 +185,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 351, "args": [ "'field_description'", @@ -175,6 +208,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_access" + ], "line": 573, "args": [ "'model'", @@ -188,6 +224,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_access" + ], "line": 574, "args": [ "'model'", @@ -201,6 +240,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_access" + ], "line": 575, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -213,6 +255,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_access" + ], "line": 575, "args": [ "[table.model]", @@ -229,6 +274,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_access" + ], "line": 579, "args": [ "'_temp_model'" @@ -249,6 +297,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field_access" + ], "line": 806, "args": [ "'field'", @@ -262,6 +313,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 807, "args": [ "'model'", @@ -275,6 +329,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 808, "args": [ "'field'", @@ -288,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field_access" + ], "line": 809, "args": [ "*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)" @@ -300,6 +360,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field_access" + ], "line": 809, "args": [ "[table.model, table.field]", @@ -316,6 +379,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field_access" + ], "line": 814, "args": [ "'_temp_field'" @@ -336,6 +402,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_button" + ], "line": 983, "args": [ "'model'", @@ -349,6 +418,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_button" + ], "line": 984, "args": [ "'model'", @@ -362,6 +434,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_button" + ], "line": 985, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -374,6 +449,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_button" + ], "line": 985, "args": [ "[table.model]", @@ -390,6 +468,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_button" + ], "line": 989, "args": [ "'_temp_model'" @@ -402,6 +483,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 994, "args": [ "'name_model_uniq'" @@ -421,6 +505,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_data" + ], "line": 1334, "args": [ "'fs_id_module_model_uniq'" @@ -440,6 +527,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_rule_group" + ], "line": 113, "args": [ "'model'", @@ -453,6 +543,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_rule_group" + ], "line": 114, "args": [ "'model'", @@ -466,6 +559,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_rule_group" + ], "line": 115, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -478,6 +574,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_rule_group" + ], "line": 115, "args": [ "[table.model]", @@ -494,6 +593,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_rule_group" + ], "line": 119, "args": [ "'_temp_model'" @@ -514,6 +616,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_ui_view_tree_optional" + ], "line": 638, "args": [ "'view_id'", @@ -526,6 +631,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 643, "args": [ "*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)" @@ -537,6 +646,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 643, "args": [ "[table.model]", @@ -551,6 +664,9 @@ { "object": "view", "operation": "select", + "tables": [ + "ir_ui_view" + ], "line": 645, "args": [ "view.model" diff --git a/data/7.8/party.json b/data/7.8/party.json index 9cbf851..6e434d2 100644 --- a/data/7.8/party.json +++ b/data/7.8/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 165, "args": [ "'street'", @@ -23,6 +26,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 166, "args": [ "'name'", @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -55,6 +64,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "[table.identifier_types]", @@ -67,6 +79,30 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyCategory", + "method": "__register__", + "line": 465, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "party_category_rel", + "party_party-party_category" + ], + "line": 467, + "args": [ + "'party_category_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('party_category_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Identifier", @@ -76,6 +112,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 858, "args": [ "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" @@ -87,6 +126,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 858, "args": [ "[table.type]", @@ -101,6 +143,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 862, "args": [ "*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')" @@ -112,6 +157,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 862, "args": [ "[table.type]", diff --git a/data/7.8/production.json b/data/7.8/production.json index 2498730..0fbfe7a 100644 --- a/data/7.8/production.json +++ b/data/7.8/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 214, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 220, "args": [ "'product_bom_uniq'" @@ -35,6 +41,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "production_bom_input" + ], "line": 222, "args": [ "'product'", @@ -55,6 +64,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" @@ -66,6 +78,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "[table.method]", @@ -88,6 +103,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 287, "args": [ "'uom'", diff --git a/data/7.8/res.json b/data/7.8/res.json index 044fd39..2abee09 100644 --- a/data/7.8/res.json +++ b/data/7.8/res.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 204, "args": [ "'menu'", diff --git a/data/8.0/company.json b/data/8.0/company.json index 1048cb3..27532b4 100644 --- a/data/8.0/company.json +++ b/data/8.0/company.json @@ -1,5 +1,30 @@ { "version": "8.0", "module": "company", - "files": [] + "files": [ + { + "file": "/home/uha4/tmp/tryton/modules/company/ir.py", + "class": "CronCompany", + "method": "__register__", + "line": 106, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "cron_company_rel", + "ir_cron-company_company" + ], + "line": 108, + "args": [ + "'cron_company_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('cron_company_rel', cls._table)", + "phase": "before_super" + } + ] + } + ] } \ No newline at end of file diff --git a/data/8.0/country.json b/data/8.0/country.json index 86dce1f..9d633ec 100644 --- a/data/8.0/country.json +++ b/data/8.0/country.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 407, "args": [ "'type'" @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "country_subdivision" + ], "line": 410, "args": [ "'code'" diff --git a/data/8.0/currency.json b/data/8.0/currency.json index 4a52cab..5bd487d 100644 --- a/data/8.0/currency.json +++ b/data/8.0/currency.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "currency_currency" + ], "line": 83, "args": [ "'symbol'", @@ -31,6 +34,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "currency_currency_rate" + ], "line": 283, "args": [ "'check_currency_rate'" diff --git a/data/8.0/ir.json b/data/8.0/ir.json index 7aca985..52dc7bf 100644 --- a/data/8.0/ir.json +++ b/data/8.0/ir.json @@ -11,6 +11,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "*table.update([table.user], [table.create_uid])" @@ -23,6 +26,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_export" + ], "line": 79, "args": [ "[table.user]", @@ -44,6 +50,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 88, "args": [ "'name'", @@ -57,6 +66,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model" + ], "line": 89, "args": [ "'model'", @@ -70,6 +82,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model" + ], "line": 90, "args": [ "'model_uniq'" @@ -89,6 +104,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 337, "args": [ "'model'", @@ -102,6 +120,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field" + ], "line": 338, "args": [ "'model'", @@ -115,6 +136,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field" + ], "line": 339, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -127,6 +151,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field" + ], "line": 339, "args": [ "[table.model]", @@ -143,6 +170,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field" + ], "line": 343, "args": [ "'_temp_model'" @@ -155,6 +185,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field" + ], "line": 346, "args": [ "'field_description'", @@ -175,6 +208,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_access" + ], "line": 551, "args": [ "'model'", @@ -188,6 +224,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_access" + ], "line": 552, "args": [ "'model'", @@ -201,6 +240,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_access" + ], "line": 553, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -213,6 +255,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_access" + ], "line": 553, "args": [ "[table.model]", @@ -229,6 +274,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_access" + ], "line": 557, "args": [ "'_temp_model'" @@ -249,6 +297,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_field_access" + ], "line": 784, "args": [ "'field'", @@ -262,6 +313,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 785, "args": [ "'model'", @@ -275,6 +329,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_field_access" + ], "line": 786, "args": [ "'field'", @@ -288,6 +345,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_field_access" + ], "line": 787, "args": [ "*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)" @@ -300,6 +360,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_field_access" + ], "line": 787, "args": [ "[table.model, table.field]", @@ -316,6 +379,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_field_access" + ], "line": 792, "args": [ "'_temp_field'" @@ -336,6 +402,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_model_button" + ], "line": 961, "args": [ "'model'", @@ -349,6 +418,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_model_button" + ], "line": 962, "args": [ "'model'", @@ -362,6 +434,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_model_button" + ], "line": 963, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -374,6 +449,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_model_button" + ], "line": 963, "args": [ "[table.model]", @@ -390,6 +468,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_model_button" + ], "line": 967, "args": [ "'_temp_model'" @@ -402,6 +483,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_button" + ], "line": 972, "args": [ "'name_model_uniq'" @@ -421,6 +505,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "ir_model_data" + ], "line": 1307, "args": [ "'fs_id_module_model_uniq'" @@ -440,6 +527,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_rule_group" + ], "line": 112, "args": [ "'model'", @@ -453,6 +543,9 @@ { "object": "table_h", "operation": "add_column", + "tables": [ + "ir_rule_group" + ], "line": 113, "args": [ "'model'", @@ -466,6 +559,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_rule_group" + ], "line": 114, "args": [ "*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)" @@ -478,6 +574,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_rule_group" + ], "line": 114, "args": [ "[table.model]", @@ -494,6 +593,9 @@ { "object": "table_h", "operation": "drop_column", + "tables": [ + "ir_rule_group" + ], "line": 118, "args": [ "'_temp_model'" @@ -514,6 +616,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "ir_ui_view_tree_width" + ], "line": 517, "args": [ "'width'", @@ -534,6 +639,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "ir_ui_view_tree_optional" + ], "line": 699, "args": [ "'view_id'", @@ -546,6 +654,10 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 704, "args": [ "*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)" @@ -557,6 +669,10 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_ui_view_tree_optional", + "ir_ui_view" + ], "line": 704, "args": [ "[table.model]", @@ -571,6 +687,9 @@ { "object": "view", "operation": "select", + "tables": [ + "ir_ui_view" + ], "line": 706, "args": [ "view.model" diff --git a/data/8.0/party.json b/data/8.0/party.json index e749115..bf46773 100644 --- a/data/8.0/party.json +++ b/data/8.0/party.json @@ -11,6 +11,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 166, "args": [ "'street'", @@ -23,6 +26,9 @@ { "object": "table", "operation": "column_rename", + "tables": [ + "party_address" + ], "line": 167, "args": [ "'name'", @@ -43,6 +49,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])" @@ -55,6 +64,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_configuration" + ], "line": 44, "args": [ "[table.identifier_types]", @@ -67,6 +79,30 @@ } ] }, + { + "file": "/home/uha4/tmp/tryton/modules/party/party.py", + "class": "PartyCategory", + "method": "__register__", + "line": 467, + "operations": [ + { + "object": "backend.TableHandler", + "operation": "table_rename", + "tables": [ + "party_category_rel", + "party_party-party_category" + ], + "line": 469, + "args": [ + "'party_category_rel'", + "cls._table" + ], + "kwargs": {}, + "code": "backend.TableHandler.table_rename('party_category_rel', cls._table)", + "phase": "before_super" + } + ] + }, { "file": "/home/uha4/tmp/tryton/modules/party/party.py", "class": "Identifier", @@ -76,6 +112,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 878, "args": [ "*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')" @@ -87,6 +126,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 878, "args": [ "[table.type]", @@ -101,6 +143,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 882, "args": [ "*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')" @@ -112,6 +157,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 882, "args": [ "[table.type]", @@ -126,6 +174,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 887, "args": [ "*table.update([table.code_compact], [table.code])" @@ -138,6 +189,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 887, "args": [ "[table.code_compact]", @@ -151,6 +205,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "party_identifier" + ], "line": 890, "args": [ "*table.update([table.type], ['si_maticna'], where=table.type == 'si_businessid')" @@ -162,6 +219,9 @@ { "object": "table", "operation": "update", + "tables": [ + "party_identifier" + ], "line": 890, "args": [ "[table.type]", diff --git a/data/8.0/production.json b/data/8.0/production.json index 7fb6c1e..be7bee3 100644 --- a/data/8.0/production.json +++ b/data/8.0/production.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production_bom_input" + ], "line": 214, "args": [ "'uom'", @@ -24,6 +27,9 @@ { "object": "table_h", "operation": "drop_constraint", + "tables": [ + "production_bom_input" + ], "line": 220, "args": [ "'product_bom_uniq'" @@ -35,6 +41,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "production_bom_input" + ], "line": 222, "args": [ "'product'", @@ -55,6 +64,9 @@ { "object": "cursor", "operation": "execute", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')" @@ -66,6 +78,9 @@ { "object": "table", "operation": "update", + "tables": [ + "ir_cron" + ], "line": 26, "args": [ "[table.method]", @@ -88,6 +103,9 @@ { "object": "table_h", "operation": "column_rename", + "tables": [ + "production" + ], "line": 282, "args": [ "'uom'", diff --git a/data/8.0/res.json b/data/8.0/res.json index 37a0ea4..7a1377d 100644 --- a/data/8.0/res.json +++ b/data/8.0/res.json @@ -11,6 +11,9 @@ { "object": "table_h", "operation": "not_null_action", + "tables": [ + "res_user" + ], "line": 203, "args": [ "'menu'", diff --git a/extract.py b/extract.py index f96043f..965da7c 100644 --- a/extract.py +++ b/extract.py @@ -31,6 +31,16 @@ class RegisterExtractor(ast.NodeVisitor): def __init__(self, filename): self.filename = filename self.results = [] + self.model_names = {} + + def visit_Module(self, node): + for item in node.body: + if isinstance(item, ast.ClassDef): + model_name = self.get_model_name(item) + if model_name: + self.model_names[item.name] = model_name + + self.generic_visit(node) def visit_ClassDef(self, node): for item in node.body: @@ -42,6 +52,15 @@ class RegisterExtractor(ast.NodeVisitor): def extract_register(self, cls, func): operations = [] + self.table_vars = {} + self.current_class = cls + + model_name = self.model_names.get(cls) + if model_name: + self.table_vars["cls"] = model_name + + for stmt in func.body: + self.collect_table_assignment(stmt) self.walk_statements(func.body, operations, "before_super", None) @@ -54,6 +73,159 @@ class RegisterExtractor(ast.NodeVisitor): }) + def get_model_name(self, node): + for item in node.body: + if not isinstance(item, ast.Assign): + continue + + for target in item.targets: + if ( + isinstance(target, ast.Name) + and target.id == "__name__" + ): + try: + return ast.literal_eval(item.value) + except Exception: + return None + + return None + + def collect_table_assignment(self, stmt): + for node in ast.walk(stmt): + if not isinstance(node, ast.Assign): + continue + + if len(node.targets) != 1: + continue + + target = node.targets[0] + if not isinstance(target, ast.Name): + continue + + table = self.resolve_table_call(node.value) + if table: + self.table_vars[target.id] = table + elif isinstance(node.value, ast.Constant): + self.table_vars[target.id] = node.value.value + + def resolve_table_call(self, node): + if not isinstance(node, ast.Call): + return None + + # ModelClass = pool.get('ir.model.data') + if ( + isinstance(node.func, ast.Attribute) + and node.func.attr == "get" + and isinstance(node.func.value, ast.Name) + and node.func.value.id == "pool" + and len(node.args) == 1 + and isinstance(node.args[0], ast.Constant) + and isinstance(node.args[0].value, str) + ): + return node.args[0].value + + + if not ( + isinstance(node.func, ast.Attribute) + and node.func.attr in ("__table__", "__table_handler__") + ): + return None + + receiver = node.func.value + # ModelClass = pool.get('ir.model.data') + if ( + isinstance(receiver, ast.Name) + and receiver.id == "pool" + ): + return None + + if ( + isinstance(node.func, ast.Attribute) + and node.func.attr == "get" + and isinstance(node.func.value, ast.Name) + and node.func.value.id == "pool" + and len(node.args) == 1 + and isinstance(node.args[0], ast.Constant) + and isinstance(node.args[0].value, str) + ): + return node.args[0].value + if isinstance(receiver, ast.Name): + if receiver.id == "cls": + model_name = self.model_names.get(self.current_class) + else: + model_name = ( + self.model_names.get(receiver.id) + or self.table_vars.get(receiver.id) + ) + + if model_name: + return model_name.replace(".", "_") + + return None + + def resolve_table_object(self, node): + if isinstance(node, ast.Name): + return self.table_vars.get(node.id) + + if ( + isinstance(node, ast.Attribute) + and node.attr == "_table" + and isinstance(node.value, ast.Name) + and node.value.id == "cls" + ): + model_name = self.model_names.get(self.current_class) + if model_name: + return model_name.replace(".", "_") + + return self.resolve_table_call(node) + + def find_tables(self, node): + tables = [] + + for child in ast.walk(node): + if not isinstance(child, ast.Call): + continue + + if not ( + isinstance(child.func, ast.Attribute) + and child.func.attr in { + "column_rename", + "drop_column", + "add_column", + "drop_constraint", + "add_constraint", + "not_null_action", + "index_action", + "alter_size", + "update", + "insert", + "delete", + "select", + "table_exist", + } + ): + continue + + # backend.TableHandler.table_exist(cls._table) + if ( + isinstance(child.func.value, ast.Attribute) + and child.func.value.attr == "TableHandler" + and isinstance(child.func.value.value, ast.Name) + and child.func.value.value.id == "backend" + and child.func.attr == "table_exist" + and child.args + ): + table = self.resolve_table_object(child.args[0]) + if table and table not in tables: + tables.append(table) + + continue + table = self.resolve_table_object(child.func.value) + if table and table not in tables: + tables.append(table) + + return tables + def walk_statements(self, statements, operations, phase, condition): for stmt in statements: @@ -84,6 +256,9 @@ class RegisterExtractor(ast.NodeVisitor): if condition: op["condition"] = condition operations.append(op) + + if not op['tables']: + print(op) for child in ast.iter_child_nodes(node): self.walk_expression(child, operations, phase, condition) @@ -138,9 +313,46 @@ class RegisterExtractor(ast.NodeVisitor): operation = call.func.attr - if operation not in interesting: + is_table_handler = ( + isinstance(call.func.value, ast.Attribute) + and call.func.value.attr == "TableHandler" + and isinstance(call.func.value.value, ast.Name) + and call.func.value.value.id == "backend" + ) + + if operation not in interesting and not is_table_handler: return None - + + tables = self.find_tables(call) + + if ( + isinstance(call.func, ast.Attribute) + and call.func.attr == "table_rename" + and isinstance(call.func.value, ast.Attribute) + and isinstance(call.func.value.value, ast.Name) + and call.func.value.value.id == "backend" + and isinstance(call.args, list) + ): + for arg in call.args[:2]: + if isinstance(arg, ast.Constant) and isinstance(arg.value, str): + table = arg.value + elif isinstance(arg, ast.Name): + table = self.table_vars.get(arg.id) + elif ( + isinstance(arg, ast.Attribute) + and isinstance(arg.value, ast.Name) + and arg.value.id == "cls" + and arg.attr == "_table" + ): + table = self.model_names.get(self.current_class) + if table: + table = table.replace(".", "_") + else: + table = None + + if table and table not in tables: + tables.append(table) + # Wer wird aufgerufen? if isinstance(call.func.value, ast.Name): obj = call.func.value.id @@ -162,10 +374,11 @@ class RegisterExtractor(ast.NodeVisitor): kwargs[kw.arg] = ast.unparse(kw.value) except Exception: kwargs[kw.arg] = "" - + return { "object": obj, "operation": operation, + "tables": tables, "line": call.lineno, "args": args, "kwargs": kwargs, diff --git a/reports/company.md b/reports/company.md index 1cdb64d..ceabdfb 100644 --- a/reports/company.md +++ b/reports/company.md @@ -1,7 +1,38 @@ # company +## Klasse ConfigurationLang + + +### 5.6 + +file: /home/uha4/tmp/tryton/modules/company/party.py : 20 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` + +## Klasse CronCompany + + +### 7.2 + +file: /home/uha4/tmp/tryton/modules/company/ir.py : 102 +- **before_super** `table_rename` + - object: `backend.TableHandler` + - args: `'cron_company_rel', cls._table` + +## Klasse PartyLang + + +### 5.6 + +file: /home/uha4/tmp/tryton/modules/company/party.py : 43 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` + ## Klasse User + ### 6.0 file: /home/uha4/tmp/tryton/modules/company/res.py : 72 @@ -38,25 +69,3 @@ file: /home/uha4/tmp/tryton/modules/company/res.py : 72 - object: `table_h` - args: `'main_company'` - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - diff --git a/reports/country.md b/reports/country.md index a1f4117..f2c8c17 100644 --- a/reports/country.md +++ b/reports/country.md @@ -2,6 +2,7 @@ ## Klasse Country + ### 5.0 file: /home/uha4/tmp/tryton/modules/country/country.py : 29 @@ -16,9 +17,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 29 - args: `'code', 'remove'` -### 5.2 - - ### 5.4 file: /home/uha4/tmp/tryton/modules/country/country.py : 32 @@ -31,27 +29,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 32 - where: `(data.module == 'country') & (data.model == cls.__name__)` -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/modules/country/country.py : 178 @@ -63,46 +40,22 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 178 - kwargs: - where: `(data.module == 'country') & (data.model == cls.__name__)` - -### 7.2 - - -### 7.4 - - ## Klasse PostalCode + ### 6.0 file: /home/uha4/tmp/tryton/modules/country/country.py : 287 +- **before_super** `table_rename` + - object: `backend.TableHandler` + - args: `'country_zip', cls._table` - **before_super** `column_rename` - object: `table_h` - args: `'zip', 'postal_code'` - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse Subdivision + ### 5.4 file: /home/uha4/tmp/tryton/modules/country/country.py : 216 @@ -115,18 +68,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 216 - where: `(data.module == 'country') & (data.model == cls.__name__)` -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - ### 6.4 file: /home/uha4/tmp/tryton/modules/country/country.py : 256 @@ -147,18 +88,6 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 433 - action: `'remove'` -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/modules/country/country.py : 401 @@ -173,10 +102,3 @@ file: /home/uha4/tmp/tryton/modules/country/country.py : 401 - kwargs: - action: `'remove'` - -### 7.8 - - -### 8.0 - - diff --git a/reports/currency.md b/reports/currency.md index 0b326c8..5698ccc 100644 --- a/reports/currency.md +++ b/reports/currency.md @@ -2,6 +2,7 @@ ## Klasse Currency + ### 5.4 file: /home/uha4/tmp/tryton/modules/currency/currency.py : 53 @@ -14,24 +15,6 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 53 - where: `(data.module == 'currency') & (data.model == cls.__name__)` -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - ### 6.8 file: /home/uha4/tmp/tryton/modules/currency/currency.py : 72 @@ -40,15 +23,6 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 72 - args: `'symbol', 'remove'` -### 7.0 - - -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/modules/currency/currency.py : 77 @@ -56,15 +30,9 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 77 - object: `table_h` - args: `'symbol', 'remove'` - -### 7.8 - - -### 8.0 - - ## Klasse CurrencyRate + ### 7.4 file: /home/uha4/tmp/tryton/modules/currency/currency.py : 304 @@ -72,13 +40,3 @@ file: /home/uha4/tmp/tryton/modules/currency/currency.py : 304 - object: `table_h` - args: `'check_currency_rate'` - -### 7.6 - - -### 7.8 - - -### 8.0 - - diff --git a/reports/ir.md b/reports/ir.md index 84ba7ea..8e4d970 100644 --- a/reports/ir.md +++ b/reports/ir.md @@ -2,6 +2,7 @@ ## Klasse ActionActWindow + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 694 @@ -23,36 +24,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 694 - kwargs: - where: `act_window.limit == 0` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ## Klasse ActionActWindowDomain + ### 5.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 948 @@ -60,42 +34,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 948 - object: `table` - args: `'sequence', 'remove'` - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse ActionActWindowView + ### 5.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 909 @@ -103,42 +44,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 909 - object: `table` - args: `'sequence', 'remove'` - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse ActionKeyword + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 119 @@ -146,30 +54,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 119 - object: `table` - args: `['keyword', 'model'], 'add'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ## Klasse ActionReport + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 499 @@ -185,36 +72,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/action.py : 499 - kwargs: - where: `action_report.extension == 'plain'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ## Klasse Attachment + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py : 60 @@ -250,36 +110,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/attachment.py : 60 - object: `table` - args: `'resource_name'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ## Klasse Cron + ### 5.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/cron.py : 66 @@ -287,42 +120,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/cron.py : 66 - object: `table_h` - args: `'next_call', 'remove'` - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse Export + ### 7.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/export.py : 56 @@ -335,24 +135,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/export.py : 56 - object: `table` - args: `[table.user], [table.create_uid]` - -### 7.2 - - -### 7.4 - - -### 7.6 - - -### 7.8 - - -### 8.0 - - ## Klasse Icon + ### 5.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py : 33 @@ -360,42 +145,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/icon.py : 33 - object: `table` - args: `'sequence', 'remove'` - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse Model + ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 83 @@ -411,15 +163,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 83 - object: `table_h` - args: `'model_uniq'` - -### 7.8 - - -### 8.0 - - ## Klasse ModelAccess + ### 7.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 531 @@ -448,9 +194,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 531 - args: `'_temp_model'` -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 551 @@ -478,15 +221,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 551 - object: `table_h` - args: `'_temp_model'` - -### 7.8 - - -### 8.0 - - ## Klasse ModelButton + ### 6.4 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 889 @@ -495,15 +232,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 889 - args: `'name_model_uniq'` -### 6.6 - - -### 6.8 - - -### 7.0 - - ### 7.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 985 @@ -535,9 +263,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 985 - args: `'name_model_uniq'` -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 977 @@ -568,15 +293,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 977 - object: `table_h` - args: `'name_model_uniq'` - -### 7.8 - - -### 8.0 - - ## Klasse ModelData + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1100 @@ -600,30 +319,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1135 - action: `'remove'` -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1219 @@ -634,12 +329,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1219 - action: `'remove'` -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1334 @@ -647,15 +336,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 1334 - object: `table_h` - args: `'fs_id_module_model_uniq'` - -### 7.8 - - -### 8.0 - - ## Klasse ModelField + ### 7.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 297 @@ -684,9 +367,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 297 - args: `'_temp_model'` -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 320 @@ -717,15 +397,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 320 - object: `table_h` - args: `'field_description', 'string'` - -### 7.8 - - -### 8.0 - - ## Klasse ModelFieldAccess + ### 7.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 786 @@ -757,21 +431,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/model.py : 786 - object: `table_h` - args: `'_temp_field'` - -### 7.4 - - -### 7.6 - - -### 7.8 - - -### 8.0 - - ## Klasse Module + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 102 @@ -801,35 +463,41 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 102 - where: `(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)` -### 5.2 - - -### 5.4 - - ### 5.6 - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - +file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 103 +- **before_super** `table_rename` + - condition: `backend.TableHandler.table_exist(old_table)` + - object: `backend.TableHandler` + - args: `old_table, cls._table` +- **after_super** `execute` + - object: `cursor` + - args: `*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')` +- **after_super** `update` + - object: `sql_table` + - args: `[sql_table.state], ['activated']` + - kwargs: + - where: `sql_table.state == 'installed'` +- **after_super** `execute` + - object: `cursor` + - args: `*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')` +- **after_super** `update` + - object: `sql_table` + - args: `[sql_table.state], ['not activated']` + - kwargs: + - where: `sql_table.state == 'uninstalled'` +- **after_super** `execute` + - object: `cursor` + - args: `*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))` +- **after_super** `update` + - object: `model_data_sql_table` + - args: `[model_data_sql_table.module], ['ir']` + - kwargs: + - where: `(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)` ## Klasse ModuleConfigWizardItem + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 401 @@ -852,28 +520,25 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 396 - args: `'sequence', 'remove'` -### 5.4 - - ### 5.6 - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 +file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 393 +- **before_super** `table_rename` + - condition: `backend.TableHandler.table_exist(old_table)` + - object: `backend.TableHandler` + - args: `old_table, cls._table` +- **before_super** `execute` + - object: `cursor` + - args: `*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')` +- **before_super** `update` + - object: `model_data` + - kwargs: + - columns: `[model_data.model]` + - values: `[cls.__name__]` + - where: `model_data.model == 'ir.module.module.config_wizard.item'` +- **after_super** `not_null_action` + - object: `table` + - args: `'sequence', 'remove'` ### 7.0 @@ -883,15 +548,20 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 323 - object: `table` - args: `'sequence', 'remove'` - -### 7.2 +## Klasse ModuleDependency -### 7.4 +### 5.6 +file: /home/uha4/tmp/tryton/trytond/trytond/ir/module.py : 362 +- **before_super** `table_rename` + - condition: `backend.TableHandler.table_exist(old_table)` + - object: `backend.TableHandler` + - args: `old_table, cls._table` ## Klasse Queue + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/queue.py : 35 @@ -901,30 +571,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/queue.py : 35 - kwargs: - action: `'add'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ## Klasse RuleGroup + ### 7.2 file: /home/uha4/tmp/tryton/trytond/trytond/ir/rule.py : 84 @@ -953,9 +602,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/rule.py : 84 - args: `'_temp_model'` -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/rule.py : 100 @@ -983,15 +629,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/rule.py : 100 - object: `table_h` - args: `'_temp_model'` - -### 7.8 - - -### 8.0 - - ## Klasse Sequence + ### 6.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py : 115 @@ -1014,30 +654,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py : 115 - object: `table_h` - args: `'code'` - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse SequenceType + ### 6.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py : 39 @@ -1047,30 +666,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/sequence.py : 39 - kwargs: - action: `'remove'` - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse Session + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/session.py : 36 @@ -1078,30 +676,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/session.py : 36 - object: `table` - args: `'create_uid', 'add'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ## Klasse Translation + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 99 @@ -1142,24 +719,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 85 - args: `['lang', 'type', 'name'], 'add'` -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ### 6.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 110 @@ -1181,9 +740,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 110 - where: `ir_translation.type == 'odt'` -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 115 @@ -1196,15 +752,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/translation.py : 115 - object: `table` - args: `'src_md5'` - -### 7.2 - - -### 7.4 - - ## Klasse Trigger + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 74 @@ -1224,12 +774,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 74 - args: `'minimum_delay'` -### 5.2 - - -### 5.4 - - ### 5.6 file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 77 @@ -1257,24 +801,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 77 - args: `'action_function'` -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 79 @@ -1301,15 +827,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 79 - object: `table_h` - args: `'action_function'` - -### 7.2 - - -### 7.4 - - ## Klasse TriggerLog + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 300 @@ -1317,30 +837,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/trigger.py : 300 - object: `table` - args: `['trigger', 'record_id'], 'add'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ## Klasse ViewSearch + ### 5.8 file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 396 @@ -1348,33 +847,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 396 - object: `table_h` - args: `'user', 'remove'` - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse ViewTreeOptional + ### 6.4 file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 445 @@ -1403,18 +878,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 570 - kwargs: - where: `view.id == table.view` - -### 7.6 - - -### 7.8 - - -### 8.0 - - ## Klasse ViewTreeState + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 313 @@ -1422,30 +888,9 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 313 - object: `table` - args: `['model', 'domain', 'user', 'child_name'], 'add'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - ## Klasse ViewTreeWidth + ### 8.0 file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 511 @@ -1453,4 +898,3 @@ file: /home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py : 511 - object: `table_h` - args: `'width', 'remove'` - diff --git a/reports/party.md b/reports/party.md index 027f6f8..ca5cf76 100644 --- a/reports/party.md +++ b/reports/party.md @@ -2,6 +2,7 @@ ## Klasse Address + ### 5.0 file: /home/uha4/tmp/tryton/modules/party/address.py : 61 @@ -19,18 +20,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 61 - args: `'streetbis'` -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - ### 6.0 file: /home/uha4/tmp/tryton/modules/party/address.py : 67 @@ -51,18 +40,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 67 - args: `'streetbis'` -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/modules/party/address.py : 84 @@ -71,12 +48,6 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 84 - args: `'zip', 'postal_code'` -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/modules/party/address.py : 160 @@ -87,15 +58,9 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 160 - object: `table` - args: `'name', 'building_name'` - -### 7.8 - - -### 8.0 - - ## Klasse AddressFormat + ### 5.4 file: /home/uha4/tmp/tryton/modules/party/address.py : 271 @@ -136,39 +101,9 @@ file: /home/uha4/tmp/tryton/modules/party/address.py : 271 - object: `table_h` - args: `'language'` - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse Category + ### 5.0 file: /home/uha4/tmp/tryton/modules/party/category.py : 43 @@ -176,36 +111,9 @@ file: /home/uha4/tmp/tryton/modules/party/category.py : 43 - object: `table_h` - args: `'name_parent_uniq'` - -### 5.2 - - -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ## Klasse Configuration + ### 7.0 file: /home/uha4/tmp/tryton/modules/party/configuration.py : 34 @@ -218,24 +126,9 @@ file: /home/uha4/tmp/tryton/modules/party/configuration.py : 34 - object: `table` - args: `[table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]` - -### 7.2 - - -### 7.4 - - -### 7.6 - - -### 7.8 - - -### 8.0 - - ## Klasse Identifier + ### 5.6 file: /home/uha4/tmp/tryton/modules/party/party.py : 428 @@ -259,9 +152,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 428 - args: `'vat_country'` -### 5.8 - - ### 6.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 515 @@ -275,18 +165,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 515 - where: `table.type == 'cn_rit'` -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 780 @@ -300,9 +178,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 780 - where: `table.type == 'cn_rit'` -### 7.2 - - ### 7.4 file: /home/uha4/tmp/tryton/modules/party/party.py : 823 @@ -337,9 +212,6 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 825 - where: `table.type == 'co_rut'` -### 7.8 - - ### 8.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 859 @@ -360,9 +232,9 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 859 - kwargs: - where: `table.type == 'si_businessid'` - ## Klasse Party + ### 5.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 89 @@ -370,36 +242,19 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 89 - object: `table_h` - args: `'name', 'remove'` - -### 5.2 +## Klasse PartyCategory -### 5.4 - - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 +### 7.2 +file: /home/uha4/tmp/tryton/modules/party/party.py : 448 +- **before_super** `table_rename` + - object: `backend.TableHandler` + - args: `'party_category_rel', cls._table` ## Klasse PartyIdentifier + ### 5.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 329 @@ -422,15 +277,9 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 329 - object: `party_h` - args: `'vat_country'` - -### 5.2 - - -### 5.4 - - ## Klasse PartyLang + ### 5.0 file: /home/uha4/tmp/tryton/modules/party/party.py : 265 @@ -452,30 +301,36 @@ file: /home/uha4/tmp/tryton/modules/party/party.py : 265 - args: `'lang'` -### 5.2 +### 5.6 +file: /home/uha4/tmp/tryton/modules/party/party.py : 268 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` +- **after_super** `insert` + - condition: `party_h.column_exist('lang')` + - object: `table` + - args: `[table.party, table.lang], party.select(party.id, party.lang)` +- **after_super** `select` + - condition: `party_h.column_exist('lang')` + - object: `party` + - args: `party.id, party.lang` +- **after_super** `execute` + - condition: `party_h.column_exist('lang')` + - object: `cursor` + - args: `*query` +- **after_super** `drop_column` + - condition: `party_h.column_exist('lang')` + - object: `party_h` + - args: `'lang'` -### 5.4 +## Klasse _ConfigurationValue ### 5.6 - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - +file: /home/uha4/tmp/tryton/modules/party/configuration.py : 40 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` diff --git a/reports/product.md b/reports/product.md index 212ce29..c997d13 100644 --- a/reports/product.md +++ b/reports/product.md @@ -1,7 +1,18 @@ # product +## Klasse ConfigurationDefaultCostPriceMethod + + +### 5.6 + +file: /home/uha4/tmp/tryton/modules/product/configuration.py : 48 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` + ## Klasse Product + ### 5.6 file: /home/uha4/tmp/tryton/modules/product/product.py : 360 @@ -14,36 +25,9 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 360 - object: `table` - args: `[table.suffix_code], [table.code]` - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - ## Klasse ProductCostPrice + ### 5.0 file: /home/uha4/tmp/tryton/modules/product/product.py : 429 @@ -82,35 +66,49 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 429 - args: `'template'` -### 5.2 - - -### 5.4 - - ### 5.6 - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - +file: /home/uha4/tmp/tryton/modules/product/product.py : 634 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` +- **after_super** `add_column` + - condition: `not exist` + - object: `table` + - args: `'template', 'INTEGER'` +- **after_super** `execute` + - condition: `table.column_exist('template')` + - object: `cursor` + - 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)))` +- **after_super** `insert` + - condition: `table.column_exist('template')` + - object: `sql_table` + - 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))` +- **after_super** `select` + - condition: `table.column_exist('template')` + - object: `sql_table.join(product, condition=sql_table.template == product.template)` + - args: `*[Column(sql_table, c) for c in columns] + [product.id]` + - kwargs: + - where: `(sql_table.template != Null) & (sql_table.product == Null)` +- **after_super** `execute` + - condition: `table.column_exist('template')` + - object: `cursor` + - args: `*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))` +- **after_super** `delete` + - condition: `table.column_exist('template')` + - object: `sql_table` + - kwargs: + - where: `(sql_table.template != Null) & (sql_table.product == Null)` +- **after_super** `drop_column` + - condition: `table.column_exist('template')` + - object: `table` + - args: `'template'` ## Klasse ProductCostPriceMethod + ### 5.0 file: /home/uha4/tmp/tryton/modules/product/product.py : 374 @@ -130,30 +128,37 @@ file: /home/uha4/tmp/tryton/modules/product/product.py : 374 - args: `*[Column(cost_price, c) for c in columns]` -### 5.2 +### 5.6 +file: /home/uha4/tmp/tryton/modules/product/product.py : 578 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `ProductCostPrice._table` +- **after_super** `execute` + - condition: `cost_price_table.column_exist('template')` + - object: `cursor` + - 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]))` +- **after_super** `insert` + - condition: `cost_price_table.column_exist('template')` + - object: `sql_table` + - kwargs: + - columns: `[Column(sql_table, c) for c in columns]` + - values: `cost_price.select(*[Column(cost_price, c) for c in columns])` +- **after_super** `select` + - condition: `cost_price_table.column_exist('template')` + - object: `cost_price` + - args: `*[Column(cost_price, c) for c in columns]` -### 5.4 +## Klasse ProductListPrice ### 5.6 - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - +file: /home/uha4/tmp/tryton/modules/product/product.py : 551 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` diff --git a/reports/production.md b/reports/production.md index ad11259..982efec 100644 --- a/reports/production.md +++ b/reports/production.md @@ -2,6 +2,7 @@ ## Klasse BOMInput + ### 6.2 file: /home/uha4/tmp/tryton/modules/production/bom.py : 70 @@ -10,15 +11,6 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 70 - args: `'product_bom_uniq'` -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/modules/production/bom.py : 72 @@ -31,15 +23,6 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 72 - args: `'product_bom_uniq'` -### 7.2 - - -### 7.4 - - -### 7.6 - - ### 7.8 file: /home/uha4/tmp/tryton/modules/production/bom.py : 208 @@ -47,12 +30,19 @@ file: /home/uha4/tmp/tryton/modules/production/bom.py : 208 - object: `table_h` - args: `'product', 'remove'` +## Klasse ConfigurationProductionSequence -### 8.0 +### 5.6 + +file: /home/uha4/tmp/tryton/modules/production/configuration.py : 43 +- **before_super** `table_exist` + - object: `backend.TableHandler` + - args: `cls._table` ## Klasse Cron + ### 7.2 file: /home/uha4/tmp/tryton/modules/production/ir.py : 19 @@ -65,21 +55,9 @@ file: /home/uha4/tmp/tryton/modules/production/ir.py : 19 - kwargs: - where: `table.method == 'production|assign_cron'` - -### 7.4 - - -### 7.6 - - -### 7.8 - - -### 8.0 - - ## Klasse Production + ### 5.0 file: /home/uha4/tmp/tryton/modules/production/production.py : 224 @@ -97,15 +75,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 224 - where: `(table.planned_start_date == Null) & (table.planned_date != Null)` -### 5.2 - - -### 5.4 - - -### 5.6 - - ### 5.8 file: /home/uha4/tmp/tryton/modules/production/production.py : 254 @@ -119,21 +88,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 254 - where: `table.state == 'cancel'` -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/modules/production/production.py : 264 @@ -151,12 +105,6 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 264 - where: `table.state == 'cancel'` -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/modules/production/production.py : 267 @@ -165,10 +113,3 @@ file: /home/uha4/tmp/tryton/modules/production/production.py : 267 - object: `table_h` - args: `'uom', 'unit'` - -### 7.8 - - -### 8.0 - - diff --git a/reports/res.md b/reports/res.md index 56d54ac..f96d9c6 100644 --- a/reports/res.md +++ b/reports/res.md @@ -2,6 +2,7 @@ ## Klasse User + ### 5.0 file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 200 @@ -30,15 +31,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 200 - action: `'remove'` -### 5.2 - - -### 5.4 - - -### 5.6 - - ### 5.8 file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 191 @@ -52,21 +44,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 191 - where: `(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')` -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - ### 7.0 file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 207 @@ -80,12 +57,6 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 207 - where: `(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')` -### 7.2 - - -### 7.4 - - ### 7.6 file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 195 @@ -93,10 +64,3 @@ file: /home/uha4/tmp/tryton/trytond/trytond/res/user.py : 195 - object: `table_h` - args: `'menu', 'remove'` - -### 7.8 - - -### 8.0 - - diff --git a/reports/stock_lot.md b/reports/stock_lot.md index 5963a80..817d7de 100644 --- a/reports/stock_lot.md +++ b/reports/stock_lot.md @@ -2,6 +2,7 @@ ## Klasse Template + ### 5.4 file: /home/uha4/tmp/tryton/modules/stock_lot/product.py : 29 @@ -16,34 +17,3 @@ file: /home/uha4/tmp/tryton/modules/stock_lot/product.py : 29 - kwargs: - distinct_on: `template_lot_type.template` - -### 5.6 - - -### 5.8 - - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - - diff --git a/reports/stock_product_location.md b/reports/stock_product_location.md index d21bdd1..5a1413a 100644 --- a/reports/stock_product_location.md +++ b/reports/stock_product_location.md @@ -2,6 +2,7 @@ ## Klasse ProductLocation + ### 5.8 file: /home/uha4/tmp/tryton/modules/stock_product_location/location.py : 43 @@ -9,28 +10,3 @@ file: /home/uha4/tmp/tryton/modules/stock_product_location/location.py : 43 - object: `table` - args: `'product', 'remove'` - -### 6.0 - - -### 6.2 - - -### 6.4 - - -### 6.6 - - -### 6.8 - - -### 7.0 - - -### 7.2 - - -### 7.4 - -