summaryrefslogtreecommitdiff
path: root/addons/sale_mrp
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-05-05 15:17:06 +0200
committerSimon Lejeune <sle@openerp.com>2020-06-15 16:59:41 +0200
commit5011ec520c48cab4117e6e11cc91c1d551bbf648 (patch)
treeb819fa1515aa896dbd0c04dee098e42ad8e8bb56 /addons/sale_mrp
parent0e2765f5fd0ca0079f1f024ec3a1448b6d2ea3db (diff)
[REF] mrp: review consumption allowing
Now, by default, a Bill of Material have a flexible consumption instead of strict consumption. Also add new consumption choice: a flexible consumption but with a warning when the bom isn't respected. Also, now, the strict (a new warning option) consumption is checked only when we try to mark as done the MO. task-2241471
Diffstat (limited to 'addons/sale_mrp')
-rw-r--r--addons/sale_mrp/tests/test_sale_mrp_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/sale_mrp/tests/test_sale_mrp_flow.py b/addons/sale_mrp/tests/test_sale_mrp_flow.py
index 71bc229c6e2..527e992faf7 100644
--- a/addons/sale_mrp/tests/test_sale_mrp_flow.py
+++ b/addons/sale_mrp/tests/test_sale_mrp_flow.py
@@ -434,7 +434,7 @@ class TestSaleMrpFlow(AccountTestCommon):
mo_form = Form(mnf_product_d)
mo_form.qty_producing = 20
mnf_product_d = mo_form.save()
- mnf_product_d.post_inventory()
+ mnf_product_d._post_inventory()
# Check state of manufacturing order.
self.assertEqual(mnf_product_d.state, 'done', 'Manufacturing order should still be in progress state.')
@@ -484,7 +484,7 @@ class TestSaleMrpFlow(AccountTestCommon):
mo_form = Form(mnf_product_a)
mo_form.qty_producing = mo_form.product_qty
mnf_product_a = mo_form.save()
- mnf_product_a.post_inventory()
+ mnf_product_a._post_inventory()
# Check state of manufacturing order product A.
self.assertEqual(mnf_product_a.state, 'done', 'Manufacturing order should still be in the progress state.')
# Check product A avaialble quantity should be 120.