How tahait1995/pos_mrp_integration works
This Odoo add-on turns POS sales of configured manufactured products into traceable Manufacturing Orders. The main flow is product setup and POS loading, cashier-side BOM validation, backend order and stock validation, payment confirmation, then one MO per order line with optional auto-confirmation. Product indicators, availability checks, batch-sync isolation, and order/session/MO navigation are included. The POS order excerpt is partial, so uncertain internal helper calls and UI-to-view wiring are omitted.
Main entry points: pos_order.py POS Order Processing · product_template.py Product Configuration · pos_mrp.js POS Order Validation · mrp_production.py Manufacturing Orders
Components 14
Product Setup
- Product Configuration
models/product_template.py - Product Forms
views/product_template_view.xml - Bills of Materials
POS Sales
- POS Session Loader
models/pos_session.py - Product Status Card
static/src/js/pos_product_screen.js - POS Order Validation
static/src/js/pos_mrp.js - POS Order Processing
models/pos_order.py - Stock Availability
Manufacturing Traceability
- Order Traceability
views/pos_order_view.xml - Manufacturing Orders
models/mrp_production.py - MO Traceability
views/mrp_production_view.xml - Session MO List
views/pos_session_view.xml
Other components
- Cashier
- Odoo MRP
Connections 15
- Cashier → Product Status Card: views products
- POS Session Loader → Product Configuration: loads POS flags
- Product Status Card → POS Order Validation: adds product
- POS Order Validation → POS Order Processing: submits payment
- POS Order Validation → Cashier: shows validation
- POS Order Processing → Product Configuration: checks configuration
- Product Configuration → Bills of Materials: selects BOM
- POS Order Processing → Bills of Materials: validates BOM
- POS Order Processing → Stock Availability: checks availability
- POS Order Processing → Odoo MRP: creates and confirms MOs
- POS Order Processing → Manufacturing Orders: links order lines
- Manufacturing Orders → Order Traceability: exposes order links
- Manufacturing Orders → MO Traceability: shows POS origin
- POS Session Loader → Session MO List: provides MO count
- Product Forms → Product Configuration: configures manufacturing