Skip to content

Commit

Permalink
[FIX] mrp_production_back_to_draft: include finished moves.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow committed Sep 13, 2024
1 parent 7d0c4ef commit 510a241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrp_production_back_to_draft/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def action_return_to_draft(self):
% rec.name
)
else:
rec.move_raw_ids._action_cancel()
rec.move_raw_ids.write({"state": "draft"})
(rec.move_raw_ids + rec.move_finished_ids)._action_cancel()
(rec.move_raw_ids + rec.move_finished_ids).write({"state": "draft"})

0 comments on commit 510a241

Please sign in to comment.