Files

299 lines
9.3 KiB
JSON

{
"version": "7.4",
"module": "party",
"files": [
{
"module": "party",
"file": "address.py",
"class": "Address",
"method": "__register__",
"line": 84,
"operations": [
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
"line": 88,
"args": [
"'zip'",
"'postal_code'"
],
"kwargs": {},
"code": "table.column_rename('zip', 'postal_code')",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "address.py",
"class": "AddressFormat",
"method": "__register__",
"line": 303,
"operations": [
{
"object": "table",
"operation": "update",
"tables": [
"party_address_format",
"country_country"
],
"line": 318,
"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": 320,
"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": 323,
"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": 324,
"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": 328,
"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": 330,
"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": "cursor",
"operation": "execute",
"tables": [],
"line": 333,
"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": 334,
"args": [
"'language'"
],
"kwargs": {},
"code": "table_h.drop_column('language')",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
}
]
},
{
"module": "party",
"file": "configuration.py",
"class": "Configuration",
"method": "__register__",
"line": 34,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_configuration"
],
"line": 45,
"args": [
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
],
"kwargs": {},
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_configuration"
],
"line": 45,
"args": [
"[table.identifier_types]",
"[cls.identifier_types.sql_format(identifier_types)]"
],
"kwargs": {},
"code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
}
]
},
{
"module": "party",
"file": "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"
}
]
},
{
"module": "party",
"file": "party.py",
"class": "Identifier",
"method": "__register__",
"line": 823,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 830,
"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": 830,
"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"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 841,
"args": [
"*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')"
],
"kwargs": {},
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc')))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
"line": 841,
"args": [
"[table.type]",
"['uy_rut']"
],
"kwargs": {
"where": "table.type == 'uy_ruc'"
},
"code": "table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc'))",
"phase": "after_super"
}
]
}
]
}