diff --git a/purchase_order_secondary_unit/tests/test_purchase_order_secondary_unit.py b/purchase_order_secondary_unit/tests/test_purchase_order_secondary_unit.py index 46362947b87..4bcb55bc41b 100644 --- a/purchase_order_secondary_unit/tests/test_purchase_order_secondary_unit.py +++ b/purchase_order_secondary_unit/tests/test_purchase_order_secondary_unit.py @@ -19,6 +19,7 @@ def setUpClass(cls): product_form.name = "Test" product_form.uom_id = cls.product_uom_kg product_form.uom_po_id = cls.product_uom_kg + product_form.default_code = "123456" cls.product = product_form.save() # Set a secondary unit on the template of the previously created product with Form(cls.product.product_tmpl_id) as template_form: