OdooWiki OCA HUB

Purchase Product Last Price Info

purchase_last_price_info folder_open OCA/purchase-workflow open_in_new
Purchase Management License: AGPL-3

This module adds the last purchase info of the product. What is shown is the supplier, date of purchase, and price of the most recently confirmed purchase order.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Shows the last confirmed purchase information for each product: supplier, purchase date and unit price. The data appears on the product form and in product lists, so buyers can quickly see what was last paid.

This module adds a read-only "Purchase" block to the product form and extra columns to product lists, giving users a quick view of the most recent confirmed purchase of a product.

What it shows: - The last supplier, the purchase date and the unit price of the most recent purchase order line. - If the purchase was made in a foreign currency, the currency and its exchange rate are also shown (only for users allowed to work with multiple currencies).

How the "last purchase" is chosen: only purchase order lines whose order is confirmed or done, and belonging to companies the user is currently working in, are considered. Among them, the line with the latest order date is used.

The information is computed automatically on product.product and product.template, so it updates as new purchases are confirmed. On the product form, the block is shown for single-variant products on the template form and for multi-variant products on the variant form, avoiding duplication. In list views, the last purchase price is added next to the sale price (for variants) or the cost (for templates).

No menus, buttons, emails or scheduled actions are added; the module only enriches existing product screens and lists with purchase history data.

Depends on

purchase
Models and fields (2)
  • product.product · extends an existing modellast_purchase_date, last_purchase_price, last_purchase_line_id, last_purchase_line_ids (Last Purchase Order Lines), last_purchase_currency_id, last_purchase_supplier_id (Last Supplier), last_purchase_price_currency_rate (Last Purchase Currency Rate), show_last_purchase_price_currency_rate
  • product.template · extends an existing modellast_purchase_date, last_purchase_price, last_purchase_line_id, last_purchase_line_ids (Last Purchase Order Lines), last_purchase_currency_id, last_purchase_supplier_id (Last Supplier), last_purchase_price_currency_rate (Last Purchase Currency Rate), show_last_purchase_price_currency_rate

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

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0

In order to use this module, go to:

  • Products -\> Tab Purchase (see screenshot)

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.