[IMP] mrp_multi_level: Archiving a product should archive related MRP parameters

This commit is contained in:
Lois Rilo
2022-02-28 08:55:59 +01:00
committed by JasminSForgeFlow
parent 3f93e09ed9
commit 093bd0d632
2 changed files with 15 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ class TestMrpMultiLevel(TestMrpMultiLevelCommon):
self.assertEqual(product_mrp_area.supply_method, "manufacture")
self.assertFalse(product_mrp_area.main_supplier_id)
self.assertFalse(product_mrp_area.main_supplierinfo_id)
# Archiving the product should archive parameters:
self.assertTrue(product_mrp_area.active)
self.sf_1.active = False
self.assertFalse(product_mrp_area.active)
def test_03_mrp_moves(self):
"""Tests for mrp moves generated."""