Cancel Manufacturing Order - Cancel Done MO, Reset to Draft, Delete
by Modvanta https://modvantaapps.tech/odoo-apps/mrp-cancel/$ 6.98

Cancel a manufacturing order that is already done - stock comes back, and you see why when it cannot
A Cancel Done Order button on done orders and a Cancel Manufacturing Orders action on the list. Finished products are taken back out of stock, components are returned, and every order is checked before anything changes.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Standard Odoo will not cancel a manufacturing order once it is done. When an order was produced by mistake - the wrong bill of materials, the wrong size, a duplicate - you are left with unbuild orders and manual stock corrections.
This module adds Cancel Done Order. The finished product is taken back out of stock, the components are returned to stock with reversal moves dated today, and the order becomes Cancelled with the reason, the user, the date and the method on the order and in its chatter.
Before anything is touched, a window lists every selected order and what would stop it. On the bench, an order of 5 bookshelves where only 2 were still in stock was refused with that exact explanation, while the other orders in the same selection were cancelled.
Who it is for
Production planners Undo an order that was produced by mistake without building unbuild orders and stock corrections by hand. | Manufacturing managers Decide who may cancel done orders: only members of a dedicated group see the button and the list action. | Stock and finance teams Every cancel is traceable: reason, user, date, method and a link to each reversal move. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co, Odoo manufacturing demo data).
Feature 1
Cancel Done Order on a done manufacturing order
The button sits next to Unbuild on a done order. It is shown only to members of the group Cancel done manufacturing orders.

Feature 2
A reason, and a check before anything changes
The window explains what will happen, asks for the reason (mandatory by default) and shows each order with its result before you confirm. Here the order is Ready: stock and valuation will be reversed.

Feature 3
The cancelled order keeps the full story
The order becomes Cancelled and shows a Cancellation section: cancelled after done, reason, method, cancelled by and cancelled on. The chatter lists what was taken back out of stock, what was returned and links to every reversal move.
Dining Table: taken back out of stock 5.0 Units
Ply Layer and Wear Layer: returned to stock
A Reversal Moves button on the order

Feature 4
Reversal moves, history kept
By default the original moves stay done and new moves dated today send the finished product back to Production and the components back to stock. Stock reports for past dates do not change.

Feature 5
Mass cancel from the list, each order checked
Tick orders in any state and choose Actions > Cancel Manufacturing Orders. A done order gets the reversal, an order that is not done yet gets a plain cancel, and an order that can no longer be reversed correctly is marked Will be refused with the reason.

Feature 6
One result per order
Cancelled with reversal moves, cancelled with no stock moved, or refused with the reason. The orders that pass go through; the refused one is left untouched.

Feature 7
Cancel and create a new draft order
Choose Cancel and create a new draft order to replace the cancelled order straight away. When the company allows it, a second method (remove the original moves) and Cancel and delete are offered too.

Feature 8
The new draft order is linked
The result line names the new draft order (WH/MO/00011 on the bench), and both orders link to each other.

Feature 9
Find every order cancelled after it was done
A Cancelled After Done filter in the Manufacturing Orders search lists them in one click.

Feature 10
Settings per company
Manufacturing > Configuration > Settings has a Cancel Done Manufacturing Orders block: switch the feature on, make the reason mandatory, allow a new draft order, allow removing the original moves and allow delete after cancel.

How it works, step by step
| 1 | Install and add users to the group Install the module and add the users who may cancel done orders to the group Cancel done manufacturing orders (the administrator is a member). |
| 2 | Choose your options In Manufacturing > Configuration > Settings decide whether a reason is mandatory and which follow-ups are allowed. |
| 3 | Open a done order Click Cancel Done Order, or select several orders in the list and use Actions > Cancel Manufacturing Orders. |
| 4 | Read the check, give the reason Each order is shown as Ready, Will be refused (with why) or a plain cancel. Pick the method and what happens after, type the reason. |
| 5 | Confirm Stock comes back, the order is Cancelled, the reason and links are on the order and in the chatter. |
Settings
Manufacturing > Configuration > Settings, block Cancel Done Manufacturing Orders. Every option is per company.
| Cancel Done Manufacturing Orders | On by default. Members of the group may cancel a done order. |
| Cancellation Reason Is Mandatory | On by default. The reason is kept on the order and in the chatter. |
| Allow A New Draft Order After Cancel | On by default. Offers Cancel and create a new draft order, linked to the cancelled one. |
| Allow Removing The Original Moves | Off by default. A second method that empties and cancels the original moves instead of adding reversal moves; rewrites stock history and is refused in locked periods. |
| Allow Delete After Cancel | Off by default, only with the second method. Offers Cancel and delete. |
| Group Cancel done manufacturing orders | Settings > Users. Only members see the button and the list action. |
Frequently asked questions
What happens when the finished products were already sold or moved?
The order is refused with the reason, for example: 5.0 Units were produced into WH/Stock but only 2.0 are still there. Return or adjust that stock first.
Does it change stock history?
Not with the default method: the original moves stay done and reversal moves dated today are added. Only the optional second method removes the original moves.
Can I cancel orders that are not done yet from the same action?
Yes. In a mass cancel they get a plain cancel; done orders get the reversal.
Who can use it?
Only members of the group Cancel done manufacturing orders. Others do not see the button or the list action.
Is it tested?
Yes, the module ships 39 automated tests and all of them pass on Odoo 19.
Compatibility
Odoo 19 Community and Enterprise | Depends on Manufacturing (mrp) | Multi-company Settings per company |
Undo a done manufacturing order the safe way
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Lifetime module updates for Odoo 19 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Manufacturing (mrp)
• Inventory (stock) • Discuss (mail) |
| Lines of code | 785 |
| Technical Name |
mdv_mrp_cancel |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/mrp-cancel/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module