stock_request_mrp module integrates stock requests with the manufacturing system, enabling users to track and manage manufacturing orders that are automatically created from confirmed stock requests.
Overview
Module Name:stock_request_mrpVersion: 18.0.1.0.0
License: LGPL-3
Dependencies:
stock_request, mrpAuthor: ForgeFlow, OCA
Maintainers: @LoisRForgeFlow, @etobella
Auto Install: Yes (when both dependencies are met)
This module enables visibility into manufacturing orders created as a consequence of stock requests, providing seamless integration between internal requests and production operations.
Key Features
Manufacturing Order Visibility
- View manufacturing orders generated from stock requests
- Smart button showing MO count on request form
- Direct navigation from request to related MOs
- Track MO status from stock request interface
Automatic Integration
- MOs created automatically via procurement rules
- Stock request origin tracked on manufacturing orders
- Bidirectional reference between requests and MOs
- Updates propagate between requests and production
Order-Level Tracking
- View all MOs from stock request orders
- Consolidated manufacturing information
- Track multiple requests fulfilled by same MO
- Production planning based on requests
Post-Install Hook
- Automatic configuration during installation
- Links existing manufacturing orders to stock requests
- Ensures data consistency
Installation
This module installs automatically when both
stock_request and mrp modules are installed.Install Prerequisites
Ensure these modules are installed:
stock_request(Stock Request)mrp(Manufacturing)
Configuration
Product Configuration for Manufacturing
For stock requests to generate manufacturing orders:Configure Product
Go to Inventory > Products > Products and select a product.In the Inventory tab:
- Check Can be Manufactured
- Add Manufacture route
Create Bill of Materials
Go to Manufacturing > Products > Bills of Materials.Click Create and configure:
- Product: Select the manufactured product
- Components: Add component products with quantities
- Operations: Define manufacturing steps (optional)
- BoM Type: Manufacture this product
Warehouse Configuration
Ensure warehouse is configured for manufacturing:Usage
Creating Request that Triggers Manufacturing
Create Stock Request
Go to Stock Requests > Stock Requests and click Create.Fill in:
- Product: Select a manufacturable product with BoM
- Quantity: Amount needed
- Location: Destination location
- Expected Date: When products are needed
View Created MO
If procurement triggers manufacturing:
- Smart button Manufacturing Orders appears
- Shows count of related MOs
- Click to view manufacturing order(s)
Viewing Related Manufacturing Orders
From Stock Request
- Open a stock request
- Click the Manufacturing Orders smart button (shows count)
- View list of related MOs
- Click any MO to see production details
From Stock Request Order
- Open a stock request order
- Click Manufacturing Orders smart button
- See all MOs generated from any request in the order
- Access consolidated production information
Managing Manufacturing Order Lifecycle
Draft MO Created
Draft MO Created
When stock request confirmed:
- MO created in draft state
- Contains finished product from request
- Components listed based on BoM
- Origin references stock request
- Can be edited before confirmation
MO Confirmed
MO Confirmed
Production manager confirms MO:
- Components reserved
- Work orders created (if routing configured)
- Production scheduled
- Stock request tracks MO status
Production In Progress
Production In Progress
During manufacturing:
- Work orders completed
- Components consumed
- Finished products recorded
- Stock request quantities update
MO Completed
MO Completed
When production finished:
- Finished products moved to stock
- Stock moves complete
- Stock request done when fully manufactured
Data Models
Stock Request (Extended)
Adds manufacturing order relationship:MRP Production (Extended)
Tracks originating stock request:Stock Request Order (Extended)
Adds order-level manufacturing tracking:Views
Stock Request Form View
Enhanced with:Manufacturing Order Form View
Enhanced with:- Stock request reference on production order
- Origin field shows stock request name
- Smart button to view related stock requests
- Link back to originating request
Procurement Flow
Request to Manufacturing Flow
Technical Flow
Integration with BoM Module
When used withstock_request_bom:
The BoM module allows you to auto-fill stock request lines based on a Bill of Materials, which can then trigger multiple manufacturing orders.
Combined Workflow
Confirm Order
Confirmation triggers manufacturing for finished product and procurement for components.
Best Practices
BoM Configuration
Request Planning
Route Configuration
Use Cases
Made-to-Order Production
Scenario: Custom or semi-custom products manufactured only when requested. Configuration:- Set Manufacture route on product
- Create BoM with required components
- Stock requests trigger manufacturing automatically
Kitting Operations
Scenario: Assembling kits from individual components. Configuration:- Create kit product with BoM type “Kit”
- Components listed in BoM
- Stock request for kit triggers assembly MO
Subassembly Production
Scenario: Multi-level BoMs where subassemblies must be manufactured. Configuration:- Create nested BoMs (finished product > subassemblies > components)
- Stock request for finished product
- System creates MOs for subassemblies as needed
Troubleshooting
No MO Created After Confirmation
Problem: Stock request confirmed but no manufacturing order generated. Solutions:- Verify product has Can be Manufactured checked
- Ensure Manufacture route is active on product
- Check that a valid BoM exists for the product
- Verify procurement rules exist for destination location
- Review product routes apply to requested location
- Check BoM is not archived or expired
Wrong BoM Selected
Problem: MO created with unexpected BoM. Solutions:- Check if multiple BoMs exist for the product
- Review BoM priorities and applicability rules
- Verify BoM company and location restrictions
- Ensure correct BoM marked as primary
Component Shortages
Problem: Cannot start production due to missing components. Solutions:- Check component availability before confirming request
- Use stock request orders to request components first
- Configure safety stock for common components
- Set up automatic component procurement
MO Quantity Incorrect
Problem: Manufacturing order quantity doesn’t match request. Solutions:- Check rounding settings on product UoM
- Review BoM quantity calculations
- Verify no minimum/maximum lot size configured
- Check if multiple requests consolidated into one MO
Advanced Features
Work Order Integration
When manufacturing uses work orders:- MO created with work orders from routing
- Each operation tracked separately
- Stock request updated as operations complete
- Quality checks can be enforced
Backorder Handling
When production split into backorders:- Original MO partially completed
- Backorder MO created for remaining quantity
- Both MOs linked to stock request
- Request done only when all MOs complete
Quality Control
Integration with quality module:- Quality checks defined in BoM or routing
- Checks must pass before MO completion
- Failed checks can block stock request fulfillment
- Quality alerts visible from stock request
Integration Examples
Programmatic MO Access
Finding Requests from MO
Monitoring Production Status
Related Modules
Stock Request Core
Base functionality for stock requests
Stock Request Purchase
Similar integration for purchase orders
Stock Request BoM
Auto-fill requests based on Bill of Materials
Manufacturing Module
Odoo standard manufacturing documentation
Performance Considerations
The post-install hook processes existing manufacturing orders to link them with stock requests. For databases with many MOs, this may take some time during installation.
Optimization Tips
- BoM Structure: Keep BoMs as simple as possible
- Component Availability: Ensure components are available before confirming requests
- Batch Processing: Group similar requests to reduce number of MOs
- Route Configuration: Optimize routes to avoid unnecessary procurement steps
