OdooWiki OCA HUB

Sale Procurement Group by Line

sale_procurement_group_by_line folder_open OCA/sale-workflow open_in_new
Warehouse License: AGPL-3

This module was written to extend the functionality of procurement groups created from a sale order.

On itself, this module does nothing it is a requirement for modules which needs to create procurement group per sale order line basis.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

This is a base module that lets each sale order line get its own procurement group, so stock moves can be grouped per line instead of per whole order. It does not add menus or buttons by itself.

This module changes how Odoo groups the stock operations generated by a sale order. Normally all lines of a sale order share one procurement group. With this module, each sale.order.line can carry its own procurement_group_id, and the system uses that group when launching stock rules.

When a sale order is confirmed, the module checks each line: only lines in state sale, on an unlocked order, for consumable products, and not yet fully procured are processed. For each such line it looks for an existing procurement group on the line, or reuses one from another line of the same order. If none exists, it creates a new procurement group and links it to the line. It also keeps the group's delivery address and move type aligned with the order's shipping partner and picking policy.

The module also affects stock.move merging: when the context flag sale_group_by_line is set, candidate moves are restricted to the stock moves of the sale line's own procurement group, so moves from different lines are not merged together.

This module is a technical foundation. It adds no menus, reports, or user-facing screens. Its behaviour is visible indirectly through the procurement groups and stock moves generated from sale orders.

Depends on

sale_stock
Models and fields (1)
  • sale.order.line · extends an existing modelprocurement_group_id

Text generated by AI (DeepSeek) from reading the Odoo 18.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 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 information

Installation 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.

info

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.