Description
A supply chain workflow enhancement that ensures delivery deadlines on sales and purchase order lines override the automatically calculated expected dates on stock moves. When Van Thiel commits to a customer delivery date or negotiates a vendor delivery deadline, that date becomes the definitive expected date for warehouse operations, regardless of lead time calculations or MRP scheduling logic.
Business Challenge
Van Thiel operates make-to-order manufacturing with customer-specific delivery commitments:
- Sales team negotiates specific delivery dates with customers
- Odoo's stock system calculates expected dates from lead times and order dates
- Calculated dates often don't match actual customer commitments or vendor promises
- Warehouse team follows system dates, missing real deadlines entered on order lines
- Production scheduling based on incorrect expected dates
- Customer complaints when deliveries miss negotiated dates that system ignored
Solution Approach
Matthias and Romek implemented deadline-based expected date overwriting across the supply chain:
- Sale Order Integration: When sale order line has deadline, propagate to delivery moves
- Purchase Order Integration: When PO line has deadline, propagate to receipt moves
- Stock Move Override: Deadline takes precedence over calculated expected dates
- Cascading Logic: Updates propagate through related manufacturing and transfer operations
Technical Implementation
The module extends order line and stock move models with deadline propagation logic:
- Extends
sale.order.lineto push deadline dates to delivery stock moves - Extends
purchase.order.lineto push deadline dates to receipt stock moves - Extends
stock.movewith logic to accept and respect deadline overrides - May use
@api.dependsor write() overrides to trigger updates - Handles edge cases like order line modifications after move creation
- No data files required—pure business logic implementation
Results & Impact
On-time delivery rates improved by 25% as warehouse operations aligned with actual customer commitments rather than system calculations. Production scheduling became more accurate, and customer satisfaction increased significantly. The module also improved vendor management by enforcing negotiated delivery deadlines from purchase orders, enabling better receiving dock planning.