OdooWiki OCA HUB

Mrp Unbuild Restore Origin

mrp_unbuild_restore_origin folder_open OCA/manufacture open_in_new
Stock License: AGPL-3

This module enhances the unbuild process of Manufacturing Orders by retaining information from the original move lines.

  • Owner Retention: The owner from the original move lines is always retained automatically when unbuilding a Manufacturing Order.
  • Location Retention (Optional): A boolean field is available to retain the original source and destination locations of the move lines during the unbuild process, if needed.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

When you unbuild a manufacturing order, this module keeps the original owner of the components and can send them back to the exact location they were taken from during manufacturing.

This module changes how Odoo handles the unbuild of a manufacturing order (mrp.unbuild).

On the unbuild form, a new checkbox "Return Components to Original Location" appears when the unbuild is linked to a manufacturing order. If you tick it, the destination location field is hidden because Odoo will automatically use the original locations instead.

When you run the unbuild: - The owner of the components is always kept from the original move lines, so goods owned by a customer or third party stay with that owner. - If the checkbox is ticked, each component is returned to the exact location it was taken from during manufacturing, and the destination becomes the original source location. - If the checkbox is not ticked, the standard destination location is used.

The module also adjusts the internal confirmation of stock moves so that the automatically generated moves for the unbuild are not merged or altered, keeping the owner and location information correct.

It touches the manufacturing unbuild screen and the stock move logic behind it. No new menus or reports are added.

Depends on

mrp
Models and fields (2)
  • stock.move · extends an existing model
  • mrp.unbuild · extends an existing modelrestore_rm_stock_in_origin_loc (Return Components to Original Location)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/manufacture.

terminal Installation and usage

OCA documentation · Odoo 16.0

When unbuilding a completed Manufacturing Order, the owner from the original move lines is always retained automatically.

If you want the components to be returned to the same locations they were originally consumed from, enable the checkbox labeled "Restore Components to Original Location" when creating the Unbuild Order. If this option is not enabled, Odoo will follow its standard behavior.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.