Skip to content

Commit 2a26023

Browse files
[FIX] mrp: cancel finished moves when an MO does not have components
1 parent a8c82e6 commit 2a26023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/mrp/models/mrp_production.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ def action_cancel(self):
13611361
orders in exception """
13621362
self.workorder_ids.filtered(lambda x: x.state not in ['done', 'cancel']).action_cancel()
13631363
if not self.move_raw_ids:
1364+
self.move_finished_ids.filtered(lambda x: x.state not in ('done', 'cancel'))._action_cancel()
13641365
self.state = 'cancel'
13651366
return True
13661367
self._action_cancel()

0 commit comments

Comments
 (0)