When processing a sales order for this product, the delivery order
@@ -452,7 +451,8 @@
-
+
diff --git a/addons/mrp_byproduct/test/mrp_byproduct.yml b/addons/mrp_byproduct/test/mrp_byproduct.yml
index ac1a114ef15..758a7fc2efd 100644
--- a/addons/mrp_byproduct/test/mrp_byproduct.yml
+++ b/addons/mrp_byproduct/test/mrp_byproduct.yml
@@ -6,7 +6,6 @@
-
!record {model: mrp.bom, id: mrp.mrp_bom_9}:
product_id: product.product_product_28
- name: External Hard Disk + Subproduct
product_uom: product.product_uom_unit
sub_products:
- product_id: product.product_product_33
diff --git a/addons/sale_mrp/test/cancellation_propagated.yml b/addons/sale_mrp/test/cancellation_propagated.yml
index 6a5c557a958..0d72e3d9f3e 100644
--- a/addons/sale_mrp/test/cancellation_propagated.yml
+++ b/addons/sale_mrp/test/cancellation_propagated.yml
@@ -20,7 +20,6 @@
-
!record {model: mrp.bom, id: mrp_bom_test1}:
company_id: base.main_company
- name: My BOM
product_tmpl_id: product_manu_product_template
product_id: product_manu
product_uom: product.product_uom_unit
diff --git a/addons/sale_mrp/test/sale_mrp.yml b/addons/sale_mrp/test/sale_mrp.yml
index 442b341bb08..023bdae08f4 100644
--- a/addons/sale_mrp/test/sale_mrp.yml
+++ b/addons/sale_mrp/test/sale_mrp.yml
@@ -52,7 +52,6 @@
-
!record {model: mrp.bom, id: mrp_bom_slidermobile0}:
company_id: base.main_company
- name: Slider Mobile
product_efficiency: 1.0
product_tmpl_id: product_product_slidermobile0_product_template
product_id: product_product_slidermobile0
diff --git a/addons/sale_mrp/tests/test_sale_mrp_flow.py b/addons/sale_mrp/tests/test_sale_mrp_flow.py
index 3f5b10c7ccc..91696286168 100644
--- a/addons/sale_mrp/tests/test_sale_mrp_flow.py
+++ b/addons/sale_mrp/tests/test_sale_mrp_flow.py
@@ -50,9 +50,8 @@ class TestSaleMrpFlow(common.TransactionCase):
'bom_id': bom_id,
'product_uom': uom_id})
- def create_bom(name, product_tmpl_id, qty, uom_id, bom_type):
+ def create_bom(product_tmpl_id, qty, uom_id, bom_type):
return self.MrpBom.create({
- 'name': name,
'product_tmpl_id': product_tmpl_id,
'product_qty': qty,
'type': bom_type,
@@ -97,18 +96,18 @@ class TestSaleMrpFlow(common.TransactionCase):
# ------------------------------------------------------------------------------------------
# Bill of materials for Product A.
- bom_a = create_bom(product_a.name, product_a.product_tmpl_id.id, 2, self.uom_dozen.id, 'normal')
+ bom_a = create_bom(product_a.product_tmpl_id.id, 2, self.uom_dozen.id, 'normal')
create_bom_lines(bom_a.id, product_b.id, 3, self.uom_unit.id, 'phantom')
create_bom_lines(bom_a.id, product_c.id, 300.5, self.uom_gm.id, 'normal')
create_bom_lines(bom_a.id, product_d.id, 4, self.uom_unit.id, 'phantom')
create_bom_lines(bom_a.id, product_d.id, 4, self.uom_unit.id, 'normal')
# Bill of materials for Product B.
- bom_b = create_bom(product_b.name, product_b.product_tmpl_id.id, 1, self.uom_unit.id, 'phantom')
+ bom_b = create_bom(product_b.product_tmpl_id.id, 1, self.uom_unit.id, 'phantom')
create_bom_lines(bom_b.id, product_c.id, 0.400, self.uom_kg.id, 'normal')
# Bill of materials for Product D.
- bom_d = create_bom(product_d.name, product_d.product_tmpl_id.id, 1, self.uom_unit.id, 'normal')
+ bom_d = create_bom(product_d.product_tmpl_id.id, 1, self.uom_unit.id, 'normal')
create_bom_lines(bom_d.id, product_c.id, 1, self.uom_kg.id, 'normal')
# ----------------------------------------