diff --git a/tests/scenario_production_lot_sequence.rst b/tests/scenario_production_lot_sequence.rst index 8c96ae8..82f112f 100644 --- a/tests/scenario_production_lot_sequence.rst +++ b/tests/scenario_production_lot_sequence.rst @@ -83,7 +83,7 @@ Create Bill of Material:: >>> bom.inputs.append(input2) >>> input2.product = component2 >>> input2.quantity = 150 - >>> input2.uom = centimeter + >>> input2.unit = centimeter >>> output = BOMOutput() >>> bom.outputs.append(output) >>> output.product = product diff --git a/tests/test_module.py b/tests/test_module.py index 74bd522..2f40cac 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -89,7 +89,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase): 'inputs': [ ('create', [{ 'product': input_product.id, - 'uom': kg.id, + 'unit': kg.id, 'quantity': 10, 'from_location': storage_loc.id, 'to_location': production_loc.id, @@ -99,7 +99,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase): 'outputs': [ ('create', [{ 'product': output_product_wo_lot.id, - 'uom': kg.id, + 'unit': kg.id, 'quantity': 5, 'from_location': production_loc.id, 'to_location': storage_loc.id, @@ -113,7 +113,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase): 'inputs': [ ('create', [{ 'product': input_product.id, - 'uom': kg.id, + 'unit': kg.id, 'quantity': 10, 'from_location': storage_loc.id, 'to_location': production_loc.id, @@ -123,7 +123,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase): 'outputs': [ ('create', [{ 'product': output_product_w_lot.id, - 'uom': kg.id, + 'unit': kg.id, 'quantity': 5, 'from_location': production_loc.id, 'to_location': storage_loc.id, diff --git a/view/bom_input_form.xml b/view/bom_input_form.xml index 24e0114..293a4c9 100644 --- a/view/bom_input_form.xml +++ b/view/bom_input_form.xml @@ -2,7 +2,7 @@ - +