OdooWiki OCA HUB

Stock Orderpoint Replenishment demand origin details

stock_orderpoint_origin folder_open OCA/stock-logistics-orderpoint open_in_new
Warehouse License: LGPL-3

The Inventory Replenishment menu alows to choose a route and create orders to replenish the needed quantities of a Product.

However the Purchase Orders created do not have the information about the documents that generated that demand. The Purchase Order "Origin" field will only identify the replenishment/reorder rule that generated it.

This feature updates the Purchase Order "Origin" field with the documents that generated the demand, generating the demand, such as Sales Orders or Manufacturing Orders. This is done based on the information provided by the Forecast report.

The source demand Sales Orders are added to the Purchase Order smart button, allowing to navigate directly to them.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

When Odoo replenishes stock and creates a purchase order, this module adds the sales orders that caused the demand to the purchase order's Origin field and to a smart button, so buyers can see and open the real source documents.

When Odoo runs a replenishment (for example from the Inventory Replenishment view or a reordering rule), it normally creates a purchase order whose Origin only mentions the rule that triggered it. This module looks at the Forecast report for the product and warehouse, finds the outgoing documents that created the demand (such as sales orders), and rewrites the purchase order's Origin to show those document names followed by the original origin.

  • The purchase order line gets a new field, source_group_ids, labelled "Procurements from Forecast Report", which stores the procurement groups behind the demand.
  • The purchase order's smart button for sale orders is extended so it also shows the sales orders linked through those procurement groups, letting users jump straight to them.
  • The change happens automatically during procurement execution; no manual action is needed.
  • If no source document is found, the origin is left unchanged.

The module touches procurement.group, purchase.order and purchase.order.line. It depends on purchase_stock and sale_stock, so it works in the standard purchase and sales flows. It does not add new menus or screens; the information appears on existing purchase order forms.

Depends on

purchase_stocksale_stock

Required by other modules

Models and fields (3)
  • purchase.order · extends an existing model
  • procurement.group · extends an existing model
  • purchase.order.line · extends an existing modelsource_group_ids (Procurements from Forecast Report)

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-orderpoint.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Create order from the Replenishment menu, for example, using the "Order Once" button.
  • Verify the Origin field of the created orders. It should include the references to the orders generating this demand at the time of replenishment creation.
  • If demand was generated from Sales Orders, the "Sale" smart button should be available.

No verified information in OCA: Installation, Configuration.

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.