OdooWiki OCA HUB

MRP Subcontracting Stock Owner Restriction

mrp_subcontracting_stock_owner_restriction folder_open OCA/manufacture open_in_new
Manufacturing License: AGPL-3

This module unlinks Detailed Component lines when the owner is updated and the picking type of the MO is not 'standard_behavior', ensuring that unrelated move lines are properly removed.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

When the owner of a manufacturing order is changed and the order does not use standard behaviour, Odoo automatically removes the detailed component lines, so leftover stock moves linked to the previous owner are cleaned up.

This module is a small automatic extension that works together with the manufacturing and stock-owner restriction features. It changes what happens when someone edits the owner field on a manufacturing order (mrp.production).

  • If the owner is changed and the order's owner restriction setting is not "standard_behavior", Odoo deletes the detailed component lines (move_line_raw_ids) of that order before saving the change.
  • This prevents component move lines that belonged to the previous owner from staying attached to the order, which could otherwise create unrelated or incorrect stock movements.
  • The module installs automatically when both mrp_subcontracting and mrp_stock_owner_restriction are present, so no separate installation step is needed.

It does not add new menus, screens, buttons or reports. It only adds this automatic cleanup rule on the manufacturing order model. Users will notice it indirectly: after changing the owner on a non-standard manufacturing order, the detailed component lines are gone and must be recreated if needed.

Models and fields (1)
  • mrp.production · extends an existing model

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

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.