diff --git a/stock_cubiscan/data/uom.xml b/stock_cubiscan/data/uom.xml index bf9504273..543ab39ea 100644 --- a/stock_cubiscan/data/uom.xml +++ b/stock_cubiscan/data/uom.xml @@ -1,9 +1,9 @@ - + - + mm - + smaller diff --git a/stock_cubiscan/tests/test_cubiscan_wizard.py b/stock_cubiscan/tests/test_cubiscan_wizard.py index ba705dc92..e9278cb0c 100644 --- a/stock_cubiscan/tests/test_cubiscan_wizard.py +++ b/stock_cubiscan/tests/test_cubiscan_wizard.py @@ -108,8 +108,12 @@ class TestCubiscanWizard(SavepointCase): self.assertEqual( self.product_1.read( [ - "product_length", "product_width", "product_height", - "weight", "volume", "dimensional_uom_id" + "product_length", + "product_width", + "product_height", + "weight", + "volume", + "dimensional_uom_id", ] )[0], { @@ -119,8 +123,8 @@ class TestCubiscanWizard(SavepointCase): "product_height": 1000, "weight": 1.0, "volume": 1.0, - "dimensional_uom_id": (mm_uom.id, mm_uom.name) - } + "dimensional_uom_id": (mm_uom.id, mm_uom.name), + }, ) packagings = self.product_1.packaging_ids.sorted() self.assertEqual(len(packagings), 5) diff --git a/stock_cubiscan/wizard/cubiscan_wizard.py b/stock_cubiscan/wizard/cubiscan_wizard.py index 933e3e234..042307a62 100644 --- a/stock_cubiscan/wizard/cubiscan_wizard.py +++ b/stock_cubiscan/wizard/cubiscan_wizard.py @@ -225,9 +225,7 @@ class CubiscanWizardLine(models.TransientModel): packaging_id = fields.Many2one( "product.packaging", string="Packaging (rel)", readonly=True ) - packaging_type_id = fields.Many2one( - "product.packaging.type", readonly=True, - ) + packaging_type_id = fields.Many2one("product.packaging.type", readonly=True,) required = fields.Boolean(related="packaging_type_id.required", readonly=True) @api.depends("lngth", "width", "height")