summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2019-09-23 12:37:39 +0000
committerArnold Moyaux <arm@odoo.com>2019-09-24 07:45:31 +0000
commitc993829d2223bcf331edaebb4779d30c85c7298b (patch)
tree4de2eade1824af4a6d19714fafe03ddf4bb371bd /addons
parent67dabea1dd12ed88998fd97cbbc84574cb982a92 (diff)
[FIX] mrp: same test name
commit ccbd6712f6f2797a00aa165ded3292d355fcc5a0 commit f3f9dd8cd7989b7c29fa75fc5d5b3a8cab62b415 Introduced both test_product_produce_6.
Diffstat (limited to 'addons')
-rw-r--r--addons/mrp/tests/test_order.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/mrp/tests/test_order.py b/addons/mrp/tests/test_order.py
index 8c5a11d31b0..b740035bc91 100644
--- a/addons/mrp/tests/test_order.py
+++ b/addons/mrp/tests/test_order.py
@@ -541,13 +541,12 @@ class TestMrpOrder(TestMrpCommon):
self.env['stock.quant']._update_available_quantity(p2, self.stock_location, 5)
mo.action_assign()
- produce_wizard = self.env['mrp.product.produce'].with_context({
+ produce_form = Form(self.env['mrp.product.produce'].with_context({
'active_id': mo.id,
'active_ids': [mo.id],
- }).create({
- 'product_qty': 3.0,
- })
- produce_wizard._onchange_product_qty()
+ }))
+ produce_form.qty_producing = 3
+ produce_wizard = produce_form.save()
produce_wizard.do_produce()
mo.post_inventory()
@@ -571,7 +570,7 @@ class TestMrpOrder(TestMrpCommon):
self.assertTrue(all(s == 'done' for s in mo.move_raw_ids.mapped('state')))
self.assertEqual(sum(mo.move_raw_ids.mapped('move_line_ids.product_uom_qty')), 0)
- def test_product_produce_6(self):
+ def test_product_produce_11(self):
""" Checks that, for a BOM with two components, when creating a manufacturing order for one
finished products and without reserving, the produce wizards proposes the corrects lines
even if we change the quantity to produce multiple times.