diff --git a/packaging_uom/tests/test_product_packaging.py b/packaging_uom/tests/test_product_packaging.py index 358ad79015c..004b66556bb 100644 --- a/packaging_uom/tests/test_product_packaging.py +++ b/packaging_uom/tests/test_product_packaging.py @@ -51,9 +51,7 @@ def test_compute_quantity_by_package(self): } ) self.assertAlmostEqual(product_packaging_dozen.qty, 1) - product_packaging_unit = self.packaging_obj.with_context( - default_product_id=self.product_unit.id - ).create( + product_packaging_unit = self.packaging_obj.create( { "name": "PACKAGING 2", "product_id": self.product_unit.id,