OdooWiki OCA HUB

Stock Procurement Group Hook

stock_procurement_group_hook folder_open OCA/stock-logistics-warehouse open_in_new
Inventory License: LGPL-3

This module adds a Hook to Procurement Group run method.

This is a technical module and does not provide any functionally by itself.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

This technical module adds a hook to the procurement group run method, allowing other modules to skip certain procurements and customize replenishment logic. It does not add any user-facing features by itself.

This is a technical module that modifies the internal run method of the procurement.group model. It does not add any menus, screens, or user-visible features.

The module changes how Odoo processes procurement requests (replenishment orders). When procurements are run, the module now:

  • Skips procurements for products that are not of type 'consu' or 'product', or when the requested quantity is zero (using rounding precision).
  • Sets default values for company, priority, and planned date if not provided.
  • Groups procurements by the action of the applicable stock rule (e.g., 'pull', 'push', 'buy', 'manufacture') and executes the corresponding method on stock.rule.
  • Collects errors when no rule is found for a product/location, and raises a user error or a ProcurementException depending on the raise_user_error flag.

The module also provides a hook method _skip_procurement on procurement.group that can be overridden by other modules to customize which procurements are skipped. This allows developers to extend or modify the procurement process without altering the core code.

Because it is a technical module, end users will not see any direct changes in the Odoo interface. Its purpose is to enable other modules to hook into the procurement run process.

Depends on

stock

Required by other modules

Text generated by AI (DeepSeek) from reading the Odoo 15.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 15.0

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

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.