This module propagates the owner_id from a source document to new Purchase Order created by the stock rule.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0When Odoo automatically creates a request for quotation from a make-to-order stock rule, this module copies the owner (the customer who owns the goods) onto that purchase order, so the purchase is linked to the right owner.
This module works behind the scenes when Odoo automatically generates a purchase order (request for quotation) from a stock rule, for example when a make-to-order product must be bought for a specific customer.
- It looks at the destination stock move that triggered the purchase. If that move is reserved for a specific owner (a customer who owns the goods), that owner is written on the new purchase order.
- If the destination move has no owner but its transfer document does, the owner of that transfer is used instead.
- If neither has an owner, it checks whether the move belongs to a manufacturing order group and, when the manufacturing module is installed and the manufacturing order has an owner, that owner is used.
- It also adds the owner to the search criteria used to find an existing draft purchase order, so a purchase order is only reused when it belongs to the same owner.
There are no new menus, buttons or reports. The change is automatic and applies to the purchase order creation flow driven by stock rules (stock.rule), and it relies on the owner field provided by the purchase_order_owner module it depends on. Users simply see the correct owner filled in on purchase orders created automatically for make-to-order needs.
Depends on
Models and fields (1)
- stock.rule · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/purchase-workflow.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.