Sale Purchase Procurement Group by Line
This module allows using module "MTO Sale \<-\> Purchase" (sale_purchase_stock) features with "Sale Procurement Group by Line" (sale_purchase_procurement_group_by_line).
auto_awesome What this module does
AI-generated from the code · Odoo 17.0This hidden glue module makes the purchase order count on a sales order work correctly when both the 'MTO Sale <-> Purchase' and 'Sale Procurement Group by Line' features are installed.
This is a technical bridge module that installs automatically when both related modules are present. It does not add any new menu, screen, button or report.
What it changes: - On a sales order, the computed number of related purchase orders now also counts purchase orders that were created through the procurement groups attached to each sales order line, not only through the sales order as a whole. - It looks at the stock moves linked to each line's procurement group, and follows the links to the purchase order lines that were created from those moves, as well as the original moves that point to a purchase line.
Why it matters to users: - When you use 'MTO Sale <-> Purchase' together with 'Sale Procurement Group by Line', each sales order line can have its own procurement group. Without this module, the purchase order count shown on the sales order could miss purchase orders generated per line. - With this module, the count is complete, so the 'Purchase Orders' smart button on the sales order reflects all related purchases.
It only touches the sale.order model and overrides the purchase order count computation and the method that collects related purchase orders. No other business rules, checks, emails or scheduled jobs are added.
Depends on
Models and fields (1)
- sale.order · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 17.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/sale-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.