pos_stock_mto_bypass/readme.md
2026-06-17 09:53:55 +07:00

15 lines
874 B
Markdown

# POS Stock MTO Bypass
This module bypasses Make to Order (MTO) rules for stock pickings created during Point of Sale (POS) order processing and session closing.
## Problem Description
By default, when kit products are sold via POS, Odoo explodes the kits into their components. If these components are configured with MTO routes, Odoo attempts to trigger procurement. If no vendor price is configured (or if the procurement rules cannot be satisfied), Odoo cancels the stock moves. This results in missing outbound stock movements for raw materials.
## Solution
This module overrides stock.picking and stock.move to:
- Detect if a stock move is being confirmed as part of a POS picking operation.
- Automatically force the procurement method to make_to_stock (MTS) for these moves.
- Avoid triggering MTO rule checks and prevents the stock moves from being cancelled.