Fix work order catalog migration seed
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
VPN SaaS Dev
2026-05-16 10:54:33 +09:00
parent 545f4d088d
commit 3e406aeb22

View File

@@ -62,6 +62,7 @@ def upgrade() -> None:
"title": "Замена моторного масла", "title": "Замена моторного масла",
"category": "maintenance", "category": "maintenance",
"work_type": "maintenance", "work_type": "maintenance",
"product_type": None,
"unit": "job", "unit": "job",
"default_quantity": 1, "default_quantity": 1,
"default_unit_price": 0, "default_unit_price": 0,
@@ -73,6 +74,7 @@ def upgrade() -> None:
"title": "Компьютерная диагностика", "title": "Компьютерная диагностика",
"category": "diagnostics", "category": "diagnostics",
"work_type": "diagnostics", "work_type": "diagnostics",
"product_type": None,
"unit": "job", "unit": "job",
"default_quantity": 1, "default_quantity": 1,
"default_unit_price": 0, "default_unit_price": 0,
@@ -84,6 +86,7 @@ def upgrade() -> None:
"title": "Замена тормозных колодок", "title": "Замена тормозных колодок",
"category": "brakes", "category": "brakes",
"work_type": "repair", "work_type": "repair",
"product_type": None,
"unit": "job", "unit": "job",
"default_quantity": 1, "default_quantity": 1,
"default_unit_price": 0, "default_unit_price": 0,
@@ -94,6 +97,7 @@ def upgrade() -> None:
"item_type": "product", "item_type": "product",
"title": "Масляный фильтр", "title": "Масляный фильтр",
"category": "filter", "category": "filter",
"work_type": None,
"product_type": "part", "product_type": "part",
"unit": "pcs", "unit": "pcs",
"default_quantity": 1, "default_quantity": 1,
@@ -105,6 +109,7 @@ def upgrade() -> None:
"item_type": "product", "item_type": "product",
"title": "Тормозная жидкость", "title": "Тормозная жидкость",
"category": "brake_fluid", "category": "brake_fluid",
"work_type": None,
"product_type": "fluid", "product_type": "fluid",
"unit": "l", "unit": "l",
"default_quantity": 1, "default_quantity": 1,