Files
tryton-db-migration/data/8.0/party.json
T

239 lines
7.1 KiB
JSON
Raw Normal View History

2026-08-07 21:06:43 +02:00
{
2026-08-08 01:29:43 +02:00
"version": "8.0",
2026-08-07 21:06:43 +02:00
"module": "party",
"files": [
{
"file": "/home/uha4/tmp/tryton/modules/party/address.py",
"class": "Address",
"method": "__register__",
"line": 161,
"operations": [
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
2026-08-07 21:06:43 +02:00
"line": 166,
"args": [
"'street'",
"'street_unstructured'"
],
"kwargs": {},
"code": "table.column_rename('street', 'street_unstructured')",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
2026-08-07 21:06:43 +02:00
"line": 167,
"args": [
"'name'",
"'building_name'"
],
"kwargs": {},
"code": "table.column_rename('name', 'building_name')",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/modules/party/configuration.py",
"class": "Configuration",
"method": "__register__",
"line": 33,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_configuration"
],
2026-08-07 21:06:43 +02:00
"line": 44,
"args": [
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
2026-08-07 21:48:46 +02:00
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
2026-08-07 21:06:43 +02:00
},
{
"object": "table",
"operation": "update",
"tables": [
"party_configuration"
],
2026-08-07 21:06:43 +02:00
"line": 44,
"args": [
"[table.identifier_types]",
"[cls.identifier_types.sql_format(identifier_types)]"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
2026-08-07 21:48:46 +02:00
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
2026-08-07 21:06:43 +02:00
}
]
},
{
"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"
}
]
},
2026-08-07 21:06:43 +02:00
{
"file": "/home/uha4/tmp/tryton/modules/party/party.py",
"class": "Identifier",
"method": "__register__",
"line": 859,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 878,
"args": [
"*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc')))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 878,
"args": [
"[table.type]",
"['uy_rut']"
],
"kwargs": {
"where": "table.type == 'uy_ruc'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc'))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 882,
"args": [
"*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['co_nit'],\n where=(table.type == 'co_rut')))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 882,
"args": [
"[table.type]",
"['co_nit']"
],
"kwargs": {
"where": "table.type == 'co_rut'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update([table.type], ['co_nit'],\n where=(table.type == 'co_rut'))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 887,
"args": [
"*table.update([table.code_compact], [table.code])"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.code_compact], [table.code]))",
2026-08-07 21:48:46 +02:00
"phase": "after_super",
"condition": "fill_code_compact"
2026-08-07 21:06:43 +02:00
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 887,
"args": [
"[table.code_compact]",
"[table.code]"
],
"kwargs": {},
"code": "table.update([table.code_compact], [table.code])",
2026-08-07 21:48:46 +02:00
"phase": "after_super",
"condition": "fill_code_compact"
2026-08-07 21:06:43 +02:00
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 890,
"args": [
"*table.update([table.type], ['si_maticna'], where=table.type == 'si_businessid')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['si_maticna'],\n where=(table.type == 'si_businessid')))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 21:06:43 +02:00
"line": 890,
"args": [
"[table.type]",
"['si_maticna']"
],
"kwargs": {
"where": "table.type == 'si_businessid'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update([table.type], ['si_maticna'],\n where=(table.type == 'si_businessid'))",
2026-08-07 21:06:43 +02:00
"phase": "after_super"
}
]
}
]
}