OdooWiki OCA HUB

Unbuild orders with return subcontracting

mrp_unbuild_subcontracting folder_open OCA/manufacture open_in_new
Manufacture License: LGPL-3

This module automatically creates an unbuild in draft state when a subcontracting picking return is created. In addition, when the picking is validated, the unbuild is also validated. To view the unbuilds created, you have to select the operation Subcontracted Unbuild Orders in debug mode

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Automatically creates a draft unbuild order when a subcontracted product is returned, and validates it when the return transfer is validated. A dedicated menu lists these subcontracted unbuild orders.

When a transfer returning a subcontracted product is confirmed, Odoo automatically creates a draft unbuild order for that product. The unbuild is linked to the return transfer and marked as subcontracted, so it is kept separate from normal unbuild orders.

  • The unbuild is created using the subcontractor's location as both source and destination, the product, quantity and bill of materials of the returned move, and the original manufacturing order when available.
  • If the returned move is linked to more than one manufacturing order, Odoo blocks the operation with an error message.
  • If the return transfer is set to immediate transfer (no planning), Odoo raises an error asking to use a planned transfer instead.
  • When the return transfer is validated, any draft subcontracted unbuild orders linked to it are validated automatically, and their stock moves are dated just before the transfer's moves.
  • The finished product moves from the unbuild are linked to the subcontracted moves of the transfer.
  • A new menu 'Subcontracted Unbuild Orders' appears under the Manufacturing menu (visible only in debug mode) and lists only unbuild orders flagged as subcontracted. The standard Unbuild Orders list now hides subcontracted ones.
  • The stock valuation report of the transfer also includes the valuation layers of the linked subcontracted unbuild orders.

The module extends mrp.unbuild, stock.move and stock.picking.

Depends on

Menus it adds

Subcontracted Unbuild Orders
Models and fields (3)
  • stock.move · extends an existing model
  • mrp.unbuild · extends an existing modelpicking_id, is_subcontracted (Is Subcontracted?)
  • stock.picking · extends an existing modelsubcontracted_unbuild_ids (Subcontracted unbuilds)

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: 2 confirmed, 7 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

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.