[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user