Files
tryton-db-migration/data/7.2/production.json
T

141 lines
4.0 KiB
JSON
Raw Normal View History

2026-08-07 22:27:49 +02:00
{
2026-08-08 01:29:43 +02:00
"version": "7.2",
2026-08-07 22:27:49 +02:00
"module": "production",
"files": [
{
"module": "production",
"file": "bom.py",
2026-08-07 22:27:49 +02:00
"class": "BOMInput",
"method": "__register__",
"line": 72,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production_bom_input"
],
2026-08-07 22:27:49 +02:00
"line": 78,
"args": [
"'uom'",
"'unit'"
],
"kwargs": {},
"code": "table_h.column_rename('uom', 'unit')",
"phase": "before_super",
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
},
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"production_bom_input"
],
2026-08-07 22:27:49 +02:00
"line": 84,
"args": [
"'product_bom_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('product_bom_uniq')",
"phase": "after_super"
}
]
},
{
"module": "production",
"file": "ir.py",
2026-08-07 22:27:49 +02:00
"class": "Cron",
"method": "__register__",
"line": 19,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_cron"
],
2026-08-07 22:27:49 +02:00
"line": 26,
"args": [
"*table.update([table.method], ['ir.cron|stock_shipment_assign_try'], where=table.method == 'production|assign_cron')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.method], ['ir.cron|stock_shipment_assign_try'],\n where=table.method == 'production|assign_cron'))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_cron"
],
2026-08-07 22:27:49 +02:00
"line": 26,
"args": [
"[table.method]",
"['ir.cron|stock_shipment_assign_try']"
],
"kwargs": {
"where": "table.method == 'production|assign_cron'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update(\n [table.method], ['ir.cron|stock_shipment_assign_try'],\n where=table.method == 'production|assign_cron')",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
}
]
},
{
"module": "production",
"file": "production.py",
2026-08-07 22:27:49 +02:00
"class": "Production",
"method": "__register__",
"line": 265,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production"
],
2026-08-07 22:27:49 +02:00
"line": 271,
"args": [
"'uom'",
"'unit'"
],
"kwargs": {},
"code": "table_h.column_rename('uom', 'unit')",
"phase": "before_super",
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
2026-08-07 22:27:49 +02:00
"line": 279,
"args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
2026-08-07 22:27:49 +02:00
"line": 279,
"args": [
"[table.state]",
"['cancelled']"
],
"kwargs": {
"where": "table.state == 'cancel'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
}
]
}
]
}