OdooWiki OCA HUB

Stock MTS+MTO Rule for manufacturing

stock_mts_mto_rule_mrp folder_open OCA/manufacture open_in_new
Warehouse License: AGPL-3

This module adds support on mrp manufacturing orders for the MTS+MTO rule from stock_mts_mto_rule module (from https://github.com/OCA/stock-logistics-warehouse)

You can then configure a pick before manufacture route which will only pick if there is no stock left in the source location of the manufacturing order.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Extends the MTS+MTO split rule to manufacturing orders, so raw material moves are automatically split between make-to-stock and make-to-order depending on available stock.

This module makes the MTS+MTO (Make To Stock + Make To Order) procurement rule work for manufacturing orders. When a manufacturing order is confirmed, Odoo recalculates how each raw material component should be procured.

  • For every raw material move, the system looks for a split procurement rule that matches the product's routes, the source location and the destination location.
  • If such a rule exists, it checks how much of the component is already available in stock.
  • If enough stock is available, the move is set to the make-to-stock method.
  • If no stock is available, the move is set to the make-to-order method.
  • If only part of the quantity is available, the move is split into two: one part make-to-stock for the available quantity and a copied move make-to-order for the missing quantity.

This behaviour is added on the mrp.production model and affects its raw material moves. It works together with the stock MTS+MTO rule module and the manufacturing module, and is installed automatically when both are present. No new menus or screens are added; the change happens behind the scenes when manufacturing orders are processed.

Depends on

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

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

terminal Installation and usage

OCA documentation · Odoo 12.0

To use the MTS + MTO rules for manufacturing on a warehouse:

  • configure the warehouse to use "Pick components and then manufacture (2 steps)"
  • Find the route "Pick components and then manufacture" of the warehouse. There should be 2 rules: one to pull products from Stock and bring it to PreProduction (using MTS), and one to pull products from PreProduction and to bring it to Production (MTO). You need to create 2 new rules:
  • one route to pull products from PreProduction and bring it to Production (MTS), using the Manufacturing operation type
  • one route to choose between MTS and MTO, with Operation Type: Manufacturing, Source location PreProduction, Destination Production, MTS rule: the one created in the previous step, MTO rule: the preexisting MTO rule pulling from PreProduction to Production

Once the routes are configured, there is nothing special to do.

No verified information in OCA: Installation.

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.