Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/mrp/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,7 @@ def action_cancel(self):
orders in exception """
self.workorder_ids.filtered(lambda x: x.state not in ['done', 'cancel']).action_cancel()
if not self.move_raw_ids:
self.move_finished_ids.filtered(lambda x: x.state not in ('done', 'cancel'))._action_cancel()
self.state = 'cancel'
return True
self._action_cancel()
Expand Down