OdooWiki OCA HUB

Purchase order line price history discount

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

This module extends the functionality of 'Purchase order line price history' module to add a discount column to the list of prices in the wizard.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a discount column to the purchase price history wizard, so buyers can see the discount applied on each past purchase line and reuse it when selecting a historical price.

This module extends the purchase price history wizard so that the discount applied on each historical purchase line is visible and reusable.

  • In the wizard that lists past prices for a purchase order line, a new Discount column appears next to the unit price, both in the list and in the detailed form of each history line.
  • The discount shown is taken directly from the original purchase order line, so it always matches what was actually agreed with the vendor.
  • When a user picks a historical line to bring its values back into the current purchase order line, the discount is copied along with the price, not just the unit price.

It touches the purchase price history line model (purchase.order.line.price.history.line) and the wizard view of purchase.order.line.price.history. No new menus or reports are added; the change is visible inside the existing price history wizard opened from a purchase order line. No scheduled jobs, emails or extra validation rules are introduced.

Models and fields (1)
  • purchase.order.line.price.history.line · extends an existing modeldiscount

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: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Go to Purchase -> Requests for Quotation and select a Requests for Quotation or create a new one.
  • Click on the clock button in one of the order lines and you will see now a new column in the list of prices in the wizard.

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.