Available Integration Modules
The Stock Request ecosystem includes several integration modules:Stock Request Purchase
Automatically generate purchase orders from stock requests
Stock Request MRP
Create manufacturing orders to fulfill stock requests
Stock Request Kanban
Implement Kanban-based inventory replenishment
Stock Request Submit
Add submission/approval workflow for requests
Stock Request Analytic
Track stock requests by analytic account
Stock Request Direction
Configure inbound/outbound request directions
Stock Request BOM
Request components from Bills of Materials
Stock Request Tier Validation
Multi-level approval workflows
Purchase Integration
The Stock Request Purchase module enables automatic purchase order generation from stock requests.Installation and Configuration
Install the Module
Navigate to Apps, search for “Stock Request Purchase”, and click Install.Or enable it from Inventory > Configuration > Settings by checking Enable Stock Requests for Purchases.
Configure Product Suppliers
For each product that should be purchased:
- Go to Inventory > Products > Products
- Open the product and navigate to the Purchase tab
- Add vendors with pricing and lead times
Purchase Module Features
Automatic PO Creation
When a stock request with a buy route is confirmed, the system:Multiple stock requests can be consolidated into a single purchase order if they request the same product from the same vendor around the same time.
Smart Button Integration
Stock requests display a Purchase Orders smart button showing:- Count of related purchase orders
- Direct navigation to PO list/form
Cancellation Handling
Cancelling a stock request propagates to related purchase orders:Purchase Workflow Example
Create Stock Request
User creates a stock request for 100 units of a purchased product with expected date of March 15.
PO Generation
System creates a purchase order:
- Vendor: From product supplier configuration
- Quantity: 100 units
- Expected delivery: Based on vendor lead time
- Origin: Stock request reference
PO Processing
Purchasing team processes the PO:
- Reviews and confirms the PO
- Receives goods
- Validates the receipt
Manufacturing Integration
The Stock Request MRP module enables manufacturing order generation from stock requests.Installation and Configuration
Install the Module
Navigate to Apps, search for “Stock Request MRP”, and click Install.Or enable from Inventory > Configuration > Settings by checking Enable Stock Requests for Manufacturing.
Configure Bills of Materials
For each manufactured product:
- Go to Manufacturing > Products > Bills of Materials
- Create a BoM with all required components
- Set BoM type and manufacturing workflow
Manufacturing Module Features
Automatic MO Creation
The manufacturing rule creates production orders with:
- Product and quantity from the stock request
- BoM components automatically added
- Scheduled date based on manufacturing lead time
- Origin reference to the stock request
Smart Button Integration
Stock requests display a Manufacturing Orders smart button:Manufacturing Workflow Example
Production Processing
Manufacturing team:
- Confirms the MO
- Produces the bicycles
- Validates production
Submit Workflow Integration
The Stock Request Submit module adds an approval workflow with a Submitted state.Installation and Configuration
Submit State Workflow
The module adds a new state between Draft and In Progress:Submit
User clicks Submit button. Request enters Submitted state.
In submitted state, the request is awaiting manager approval. No procurement is triggered yet.
Review
Manager reviews submitted requests and either:
- Confirms the request (triggers procurement)
- Returns to draft for modifications
- Cancels the request
Kanban Integration
The Stock Request Kanban module implements Kanban-based inventory replenishment.Kanban Cards
Kanban cards are physical or virtual cards that trigger replenishment:Automatic Requests
Scanning a Kanban card automatically creates a stock request
Fixed Quantities
Each card represents a predefined quantity
Location-Specific
Cards are configured for specific locations and products
Inventory Sync
Can trigger inventory adjustments alongside requests
Configuration Example
Kanban cards can be printed with barcodes for easy scanning in the warehouse.
Tier Validation Integration
The Stock Request Tier Validation module adds multi-level approval workflows.Configuration
Configure Tier Definitions
Navigate to Settings > Technical > Tier Validations > Tier Definition.Create definitions like:
- Tier 1: Supervisor approval for requests > $1,000
- Tier 2: Manager approval for requests > $5,000
Approval Workflow
Analytic Integration
The Stock Request Analytic module adds analytic accounting to stock requests.Features
- Assign analytic accounts to stock requests
- Assign analytic tags for multi-dimensional analysis
- Track stock request costs by project or department
- Generate analytic reports on stock requests
Configuration
Enable Analytic Accounting
Go to Inventory > Configuration > Settings and enable Enable Analytic Accounting in Stock Requests.
Add Analytic Accounts
In the stock request form, new fields appear:
- Analytic Account: Project or cost center
- Analytic Tags: Additional dimensions
Direction Integration
The Stock Request Direction module adds direction configuration for inbound and outbound requests.Use Cases
Inbound Requests
Request products to be brought into a location
Outbound Requests
Request products to be sent out of a location
Configuration
Direction affects how routes and rules are evaluated, allowing different procurement logic for inbound vs. outbound requests.
BOM Integration
The Stock Request BOM module allows requesting components from Bills of Materials.Features
- Select a BoM and automatically create stock requests for all components
- Useful for requesting production materials
- Quantities are calculated based on BoM ratios
Usage Example
Generate Component Requests
System automatically creates line items for each BoM component with calculated quantities.
Return Request Integration
The Stock Return Request module adds functionality for handling returns.Features
- Create return requests for products
- Link returns to original deliveries
- Track return reasons and lot numbers
- Generate return reports
Workflow
Custom Integration Development
Extending Stock Requests
To create your own integration module:Hooking into Procurement
To customize procurement behavior:Adding Smart Buttons
Integration Best Practices
- Keep integration modules independent when possible
- Use proper inheritance patterns (
_inherit, not_inherits) - Extend methods with
super()calls to maintain compatibility - Add security rules for custom fields and models
- Document integration behavior for users
- Test integrations across module combinations
- Follow OCA module structure guidelines
- Use appropriate depends in
__manifest__.py - Version your integration modules alongside stock_request versions
- Contribute useful integrations back to the OCA community
Troubleshooting Integrations
Purchase order not created from stock request
Purchase order not created from stock request
Possible Causes:
- Stock Request Purchase module not installed
- Product has no vendors configured
- Wrong route selected
- Verify module installation in Apps
- Add vendor in product’s Purchase tab
- Select a Buy route on the stock request
Manufacturing order missing components
Manufacturing order missing components
Possible Causes:
- Bill of Materials not configured
- BoM components marked as phantom
- Create or update BoM in Manufacturing > Products > Bills of Materials
- Verify BoM type and component availability
Tier validation not appearing
Tier validation not appearing
Possible Causes:
- Tier definitions not configured
- User doesn’t have validation permissions
- Domain filter doesn’t match the request
- Configure tier definitions in Settings > Technical > Tier Validations
- Add user to appropriate validation groups
- Review domain filters in tier definition
Analytic account not propagating to moves
Analytic account not propagating to moves
Possible Causes:
- Stock move analytic integration not installed
- Analytic account not set on stock request
- Verify Stock Request Analytic module is installed
- Ensure analytic account is set before confirming request
- Check that analytic accounting is enabled in company settings
