[FIX] mrp: test race condition issue

assertRaise do not rollback and continue with a broken cursor
which could cause problem during the remaining part of the test.

closes odoo/odoo#37421

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
Arnold Moyaux
2019-09-25 12:52:42 +00:00
parent 5d82725f62
commit 312e78581c
-2
View File
@@ -597,8 +597,6 @@ class TestMrpOrder(TestMrpCommon):
'mo_id': mo.id,
'product_qty': 3,
})
with self.assertRaises(UserError):
update_quantity_wizard.change_prod_qty()
mo.move_raw_ids.filtered(lambda m: m.state != 'done')[0].quantity_done = 0
update_quantity_wizard.change_prod_qty()