diff --git a/sale_mrp_bom/tests/test_sale_mrp_bom.py b/sale_mrp_bom/tests/test_sale_mrp_bom.py index c6211d61a11..bbee6f65071 100644 --- a/sale_mrp_bom/tests/test_sale_mrp_bom.py +++ b/sale_mrp_bom/tests/test_sale_mrp_bom.py @@ -38,7 +38,7 @@ def prepare_so(self): return so, bom_a_v2, bom_b_v2 def test_define_bom_in_sale_line(self): - """Check manufactured order is created with BOM definied in Sale.""" + """Check manufactured order is created with BOM defined in Sale.""" so, bom_a, bom_b = self.prepare_so() # Check manufacture order @@ -59,7 +59,7 @@ def test_mismatch_product_variant_ids(self): line_a = so.order_line[0] self.assertEqual(line_a.bom_id, bom_a) with self.assertRaises(ValidationError): - line_a.write({"bom_id": bom_b}) + line_a.bom_id = bom_b def test_accept_bom_with_no_variant(self): # make variants for template of product A