{ "version": "6.4", "module": "party", "files": [ { "module": "party", "file": "address.py", "class": "Address", "method": "__register__", "line": 76, "operations": [ { "object": "Transaction().connection", "operation": "cursor", "tables": [], "line": 77, "args": [], "kwargs": {}, "code": "Transaction().connection.(Transaction().connection.cursor())()", "unresolved": true, "phase": "before_super" }, { "object": "", "operation": "Transaction", "tables": [], "line": 77, "args": [], "kwargs": {}, "code": "Transaction()", "unresolved": true, "phase": "before_super" }, { "object": "table", "operation": "column_rename", "tables": [ "party_address" ], "line": 82, "args": [ "'zip'", "'postal_code'" ], "kwargs": {}, "code": "table.column_rename('zip', 'postal_code')", "phase": "before_super" }, { "object": "", "operation": "Concat", "tables": [], "line": 90, "args": [ "Coalesce(sql_table.street, '')", "Concat('\\n', Coalesce(sql_table.streetbis, ''))" ], "kwargs": {}, "code": "Concat(\n Coalesce(sql_table.street, ''),\n Concat('\\n', Coalesce(sql_table.streetbis, '')))", "unresolved": true, "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "", "operation": "Coalesce", "tables": [], "line": 91, "args": [ "sql_table.street", "''" ], "kwargs": {}, "code": "Coalesce(sql_table.street, '')", "unresolved": true, "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "", "operation": "Concat", "tables": [], "line": 92, "args": [ "'\\n'", "Coalesce(sql_table.streetbis, '')" ], "kwargs": {}, "code": "Concat('\\n', Coalesce(sql_table.streetbis, ''))", "unresolved": true, "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "", "operation": "Coalesce", "tables": [], "line": 92, "args": [ "sql_table.streetbis", "''" ], "kwargs": {}, "code": "Coalesce(sql_table.streetbis, '')", "unresolved": true, "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "cursor", "operation": "execute", "tables": [ "party_address" ], "line": 93, "args": [ "*sql_table.update([sql_table.street], [value])" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))", "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "sql_table", "operation": "update", "tables": [ "party_address" ], "line": 93, "args": [ "[sql_table.street]", "[value]" ], "kwargs": {}, "code": "sql_table.update(\n [sql_table.street],\n [value])", "phase": "after_super", "condition": "table.column_exist('streetbis')" }, { "object": "table", "operation": "drop_column", "tables": [ "party_address" ], "line": 96, "args": [ "'streetbis'" ], "kwargs": {}, "code": "table.drop_column('streetbis')", "phase": "after_super", "condition": "table.column_exist('streetbis')" } ] }, { "module": "party", "file": "address.py", "class": "AddressFormat", "method": "__register__", "line": 295, "operations": [ { "object": "", "operation": "Pool", "tables": [], "line": 296, "args": [], "kwargs": {}, "code": "Pool()", "unresolved": true, "phase": "before_super" }, { "object": "Transaction().connection", "operation": "cursor", "tables": [], "line": 302, "args": [], "kwargs": {}, "code": "Transaction().connection.(Transaction().connection.cursor())()", "unresolved": true, "phase": "before_super" }, { "object": "", "operation": "Transaction", "tables": [], "line": 302, "args": [], "kwargs": {}, "code": "Transaction()", "unresolved": true, "phase": "before_super" }, { "object": "table", "operation": "update", "tables": [ "party_address_format", "country_country" ], "line": 310, "args": [ "[table.country_code]", "country.select(country.code, where=country.id == table.country)" ], "kwargs": {}, "code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))", "phase": "after_super", "condition": "table_h.column_exist('country')" }, { "object": "country", "operation": "select", "tables": [ "country_country" ], "line": 312, "args": [ "country.code" ], "kwargs": { "where": "country.id == table.country" }, "code": "country.select(\n country.code,\n where=country.id == table.country)", "phase": "after_super", "condition": "table_h.column_exist('country')" }, { "object": "cursor", "operation": "execute", "tables": [], "line": 315, "args": [ "*query" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))", "phase": "after_super", "condition": "table_h.column_exist('country')" }, { "object": "table_h", "operation": "drop_column", "tables": [ "party_address_format" ], "line": 316, "args": [ "'country'" ], "kwargs": {}, "code": "table_h.drop_column('country')", "phase": "after_super", "condition": "table_h.column_exist('country')" }, { "object": "table", "operation": "update", "tables": [ "party_address_format", "ir_lang" ], "line": 320, "args": [ "[table.language_code]", "language.select(Substring(language.code, 0, 2), where=language.id == table.language)" ], "kwargs": {}, "code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))", "phase": "after_super", "condition": "table_h.column_exist('language')" }, { "object": "language", "operation": "select", "tables": [ "ir_lang" ], "line": 322, "args": [ "Substring(language.code, 0, 2)" ], "kwargs": { "where": "language.id == table.language" }, "code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)", "phase": "after_super", "condition": "table_h.column_exist('language')" }, { "object": "", "operation": "Substring", "tables": [], "line": 323, "args": [ "language.code", "0", "2" ], "kwargs": {}, "code": "Substring(language.code, 0, 2)", "unresolved": true, "phase": "after_super", "condition": "table_h.column_exist('language')" }, { "object": "cursor", "operation": "execute", "tables": [], "line": 325, "args": [ "*query" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))", "phase": "after_super", "condition": "table_h.column_exist('language')" }, { "object": "table_h", "operation": "drop_column", "tables": [ "party_address_format" ], "line": 326, "args": [ "'language'" ], "kwargs": {}, "code": "table_h.drop_column('language')", "phase": "after_super", "condition": "table_h.column_exist('language')" } ] }, { "module": "party", "file": "category.py", "class": "Category", "method": "__register__", "line": 35, "operations": [ { "object": "table_h", "operation": "drop_constraint", "tables": [ "party_category" ], "line": 41, "args": [ "'name_parent_uniq'" ], "kwargs": {}, "code": "table_h.drop_constraint('name_parent_uniq')", "phase": "after_super" } ] }, { "module": "party", "file": "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" }, { "object": "", "operation": "migrate_property", "tables": [], "line": 111, "args": [ "'party.configuration'", "field_names", "cls", "value_names" ], "kwargs": { "fields": "fields" }, "code": "migrate_property(\n 'party.configuration', field_names, cls, value_names,\n fields=fields)", "unresolved": true, "phase": "after_super", "condition": "not exist", "via": [ { "method": "_migrate_property", "line": 105 } ] } ] }, { "module": "party", "file": "party.py", "class": "Party", "method": "__register__", "line": 102, "operations": [ { "object": "table_h", "operation": "not_null_action", "tables": [ "party_party" ], "line": 108, "args": [ "'name'", "'remove'" ], "kwargs": {}, "code": "table_h.not_null_action('name', 'remove')", "phase": "after_super" } ] }, { "module": "party", "file": "party.py", "class": "PartyLang", "method": "__register__", "line": 356, "operations": [ { "object": "", "operation": "Pool", "tables": [], "line": 357, "args": [], "kwargs": {}, "code": "Pool()", "unresolved": true, "phase": "before_super" }, { "object": "Transaction().connection", "operation": "cursor", "tables": [], "line": 359, "args": [], "kwargs": {}, "code": "Transaction().connection.(Transaction().connection.cursor())()", "unresolved": true, "phase": "before_super" }, { "object": "", "operation": "Transaction", "tables": [], "line": 359, "args": [], "kwargs": {}, "code": "Transaction()", "unresolved": true, "phase": "before_super" }, { "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]", "party.select(party.id, party.lang)" ], "kwargs": {}, "code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))", "phase": "after_super", "condition": "party_h.column_exist('lang')" }, { "object": "party", "operation": "select", "tables": [ "party_party" ], "line": 371, "args": [ "party.id", "party.lang" ], "kwargs": {}, "code": "party.select(party.id, party.lang)", "phase": "after_super", "condition": "party_h.column_exist('lang')" }, { "object": "cursor", "operation": "execute", "tables": [], "line": 372, "args": [ "*query" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))", "phase": "after_super", "condition": "party_h.column_exist('lang')" }, { "object": "party_h", "operation": "drop_column", "tables": [ "party_party" ], "line": 373, "args": [ "'lang'" ], "kwargs": {}, "code": "party_h.drop_column('lang')", "phase": "after_super", "condition": "party_h.column_exist('lang')" }, { "object": "", "operation": "migrate_property", "tables": [], "line": 381, "args": [ "'party.party'", "field_names", "cls", "value_names" ], "kwargs": { "parent": "'party'", "fields": "fields" }, "code": "migrate_property(\n 'party.party', field_names, cls, value_names,\n parent='party', fields=fields)", "unresolved": true, "phase": "after_super", "condition": "not exist", "via": [ { "method": "_migrate_property", "line": 375 } ] } ] }, { "module": "party", "file": "party.py", "class": "Identifier", "method": "__register__", "line": 636, "operations": [ { "object": "", "operation": "Pool", "tables": [], "line": 637, "args": [], "kwargs": {}, "code": "Pool()", "unresolved": true, "phase": "before_super" }, { "object": "Transaction().connection", "operation": "cursor", "tables": [], "line": 639, "args": [], "kwargs": {}, "code": "Transaction().connection.(Transaction().connection.cursor())()", "unresolved": true, "phase": "before_super" }, { "object": "", "operation": "Transaction", "tables": [], "line": 639, "args": [], "kwargs": {}, "code": "Transaction()", "unresolved": true, "phase": "before_super" }, { "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))" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))", "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "party", "operation": "select", "tables": [ "party_party" ], "line": 649, "args": [ "party.id", "party.vat_number", "party.vat_country" ], "kwargs": { "where": "(party.vat_number != Null) | (party.vat_country != Null)" }, "code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))", "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "", "operation": "get_cc_module", "tables": [], "line": 658, "args": [ "*type.split('_', 1)" ], "kwargs": {}, "code": "get_cc_module(*type.split('_', 1))", "unresolved": true, "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "type", "operation": "split", "tables": [], "line": 658, "args": [ "'_'", "1" ], "kwargs": {}, "code": "type.split('_', 1)", "unresolved": true, "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "", "operation": "cls", "tables": [], "line": 664, "args": [], "kwargs": { "party": "party_id", "code": "code", "type": "type" }, "code": "cls(party=party_id, code=code, type=type)", "unresolved": true, "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "cls", "operation": "save", "tables": [], "line": 665, "args": [ "identifiers" ], "kwargs": {}, "code": "cls.save(identifiers)", "unresolved": true, "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "party_h", "operation": "drop_column", "tables": [ "party_party" ], "line": 666, "args": [ "'vat_number'" ], "kwargs": {}, "code": "party_h.drop_column('vat_number')", "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "party_h", "operation": "drop_column", "tables": [ "party_party" ], "line": 667, "args": [ "'vat_country'" ], "kwargs": {}, "code": "party_h.drop_column('vat_country')", "phase": "after_super", "condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')" }, { "object": "cursor", "operation": "execute", "tables": [ "party_identifier" ], "line": 670, "args": [ "*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')" ], "kwargs": {}, "code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))", "phase": "after_super" }, { "object": "table", "operation": "update", "tables": [ "party_identifier" ], "line": 670, "args": [ "[table.type]", "['cn_ric']" ], "kwargs": { "where": "table.type == 'cn_rit'" }, "code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))", "phase": "after_super" } ] } ] }