Cancel Manufacturing Order and Reset to Draft | Cancel MRP Order with Stock Reversal
by SprintERP Technologies https://sprinterp.com$ 8.00
Cancel Manufacturing Order and Reset to Draft
Cancel confirmed or completed manufacturing orders, automatically reverse stock quantities, and seamlessly reset production data back to draft state.
Key Module Highlights
Cancel Manufacturing Order & Reset to Draft
Assign Manufacturing Cancellation Access Rights to Users
Go to the Settings application and navigate to Users & Companies > Users. Select the administrator or employee user configuration profile. Scroll down to the Technical settings matrix and locate the "Cancel Manufacturing order" boolean field option checkbox. Enable this checkbox access permission configuration to authorize this specific user account to reverse transactional stock values and cancel completed manufacturing operations safely.
Technical Safeguard: Secure backend code access control parameters restrict the usage of cancellation operations. Non-assigned accounts attempting backend workflow cancellation will face transactional restriction error message alerts instantly.
Verify Initial Product Stock Levels Before Cancellation
Navigate to the Manufacturing app dashboard and open the Products > Products menu pipeline. Select your produced item or raw material (e.g., "Wood Panel") to review its baseline quantities. Note the current inventory state under the "On hand" counter metric fields. This step establishes your tracking baseline before the engine calculates and reverses stock balances.
Inventory Tracking Note: Keep track of your real-time quantities at this stage to observe how smoothly the backend system reverses quantities for both finished items and raw components later.
Cancel Completed Manufacturing Orders with One Click
Open any Manufacturing Order (e.g., "WH/MO/00008") that is currently in the "Done" state. Notice that instead of being locked out, your custom red "Cancel Order" button is now visible in the header control bar. Review the consumed components (such as "Wood Panel") in the allocation table listâclicking this button will initiate the absolute workflow cancellation and begin reversing the tracked stock quantities automatically.
Workflow Advantage: Native Odoo locks down completed manufacturing records permanently. This action breaks that restriction to grant complete reverse logistical management control over production lines.
Verify Automatic Inventory Stock Reversal
After successfully executing the cancellation, navigate back to the Products > Products dashboard to review item quantities. Notice that the backend automation engine has instantly recalculated physical quantities under the "On hand" parameter fields. The consumed components or raw assets (e.g., "Wood Panel") have been completely adjusted and updated across your active warehouse locations.
Automation Precision: The background logic uses secure stock updates (`_update_available_quantity`) to adjust valuation pools and balance sheets accurately, bypassing long manual journal corrections.
Secure Action Prompts to Prevent Accidental Cancellations
When an authorized manager clicks the red "Cancel Order" button on a confirmed or completed production order, the system triggers a native confirmation pop-up alert prompt. This warning dialog box reads: "Are you sure you want to cancel this manufacturing order and reverse the stock quantities?". This built-in layer of defense guarantees that irreversible inventory changes and reverse logistical stock movements are only executed intentionally.
Operational Guardrail: Clicking 'OK' on the native prompt will cause the backend logic to instantly cancel the raw and finished product moves, rewrite the manufacturing order status to 'cancel', and accurately balance warehouse quantities.
Reset Cancelled Production Orders Back to Draft
Once the manufacturing order status shifts to the "Cancelled" phase, the primary control interface introduces the custom purple "Set To Draft" action button. Clicking this button activates background reprocessing engines that instantly roll back the state of the manufacturing record along with all related raw component and finished material moves (`move_raw_ids` and `move_finished_ids`) to the "Draft" stage, making the document completely editable and ready for fresh revalidation.
Operational Flexibility: This utility ensures that if a completed order was canceled by mistake, users do not need to recreate the entire Bill of Materials (BoM) configuration from scratch; a single click completely revives the document workflow.
Confirm Final Inventory Equilibrium After Document Reset
Finally, navigate back to the Products > Products inventory overview to audit your total on-hand balances. Once the manufacturing order has been set back to draft and fully recalculated, you can observe that the target product (e.g., "Wood Panel") has returned perfectly to its absolute baseline state of 50.00 units. This complete end-to-end verification confirms that your warehouse ledger is audit-ready and free of discrepancies.
Process Complete: Your manufacturing workflow has been fully reset. The document can now be re-confirmed, modified with new raw components, or left in draft for future planning cycles without impacting current live valuation.
Key Features & Capabilities
Empower your production workflows with seamless order cancellation, automated inventory adjustments, and advanced access controls in Odoo.
Cancel 'Done' MRP Orders
Overrides native Odoo constraints to safely cancel fully processed and completed manufacturing orders, simplifying administrative mistakes and audit logs.
Automated Stock Reversal
Automatically updates and corrects the real-time stock levels of raw materials and finished goods in your warehouse upon manufacturing order cancellation.
Set to Draft Utility
Allows users to seamlessly push cancelled production orders and their associated pending stock moves back to draft state for easy corrections and reprocessing.
Role-Based Security
Secures transactional logic with a dedicated Odoo security group ("Cancel Manufacturing order"), allowing only authorized users to execute cancellations.
Multi-State Workflow
Supports easy cancellation operations across various stages of production orders including Confirmed, In Progress, To Close, and Done states.
Protected Action Prompts
Displays native confirmation alerts before initiating irreversible inventory reversals, preventing accidental clicks by warehouse personnel.
Need Any Help?
Installation, Configuration & Bug Fixing support from our experts.
© 2017 SprintERP Technologies. All Rights Reserved.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Manufacturing (mrp) • Discuss (mail) |
| Lines of code | 76 |
| Technical Name |
se_mrp_order_cancel |
| License | LGPL-3 |
| Website | https://sprinterp.com |
Please log in to comment on this module