OdooWiki OCA HUB

Procurement Auto Create Group

procurement_auto_create_group folder_open OCA/stock-logistics-warehouse open_in_new
Warehouse License: AGPL-3

This module allows the system to propose automatically new procurement groups during the procurement run.

This capability is important when you want to make sure that all the stock moves resulting from a procurement run will never be mixed with moves from other groups in stock transfers.

The stock transfers resulting from the procurement run will only contain stock moves created in that run.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you flag a stock rule so that each procurement run creates its own new procurement group, keeping the resulting stock moves separate from other transfers.

This module adds an option on stock rules (the rules that decide how products are moved between locations) so that every time the rule runs, a brand-new procurement group is created for the moves it generates.

Where it appears: - On the stock rule form, a new checkbox "Auto-create Procurement Group" appears right after the "Group Propagation Option" field. It is only visible when the propagation option is set to "Propagate".

Business rules and automatic behaviour: - When you change the propagation option away from "Propagate", the checkbox is automatically cleared. - When a rule with the checkbox enabled is used during a procurement run, the system creates a new procurement group and assigns it to the generated moves, so those moves are not mixed with moves from other groups in the same transfer. - The new group gets a name from the "procurement.group" sequence and the partner address configured on the rule. If no sequence is defined, an error is raised. - The same automatic grouping also applies when push rules copy an existing move to a new date.

Areas touched: - Stock rules (stock.rule) gain the new option and the logic to build the group. - Procurement groups (procurement.group) are extended so the rule lookup can replace the group used for the run.

Depends on

stock
Models and fields (2)
  • stock.rule · extends an existing modelauto_create_group (Auto-create Procurement Group)
  • procurement.group · extends an existing model

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 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-logistics-warehouse.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Go to Inventory / Configuration / Settings and check the option 'Multi-Step Routes' and press the 'Save' button.
  • Activate the developer mode.
  • Go to Inventory / Configuration / Warehouse Management / Routes and select the route you want to change. Select the rule you wish to change, and in case of a Pull rule or Push & Pull rule Select 'Propagation of Procurement Group': 'Propagate'. The checkbox 'Auto-create Procurement Group' will then appear and you can set it if you want to procurement group to be automatically created.
  • Run a new procurement and make sure that it determines a rule with the option 'Auto-create Procurement Group' set.
  • When the procurement rule is executed, a procurement group with format 'PG/000001' will be created. You can find this procurement group in 'Additional info' tab of a transfer.

No verified information in OCA: Installation.

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.