From e5c08d4d684f11ba82462f156cb6ad30146dea7a Mon Sep 17 00:00:00 2001 From: "r.perez" Date: Wed, 6 Nov 2024 10:49:50 -0500 Subject: [PATCH] [REF] sale_mrp_bom: tiny refactoring in tests --- sale_mrp_bom/tests/test_sale_mrp_bom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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