diff --git a/mrp_account_analytic_wip/models/mrp_production.py b/mrp_account_analytic_wip/models/mrp_production.py index 5fd93ff4ca..9472f546c4 100644 --- a/mrp_account_analytic_wip/models/mrp_production.py +++ b/mrp_account_analytic_wip/models/mrp_production.py @@ -50,7 +50,7 @@ def _compute_state(self): res = super()._compute_state() for production in self: all_finished_moves_done = all( - move.state == "done" for move in production.move_finished_ids + move.state in ("done","cancel") for move in production.move_finished_ids ) all_workorders_done = not production.workorder_ids or all( wo.state in ("done", "cancel") for wo in production.workorder_ids