mrp_production_back_to_draft
Allows manufacturing orders that were confirmed or cancelled to be set back to draft while resetting related records.
Key Features
- mrp.production: adds a Return to Draft button on manufacturing orders visible in confirmed or cancelled states
- mrp.production: action_return_to_draft cancels related stock moves, resets them to draft, and moves associated work orders back to waiting
- mrp.production: raises an error if attempting to return to draft when the manufacturing order is not confirmed or cancelled
- mrp.production: recomputes the order state to draft when all linked stock moves are draft, including cases with only draft finished moves and no raw moves