Sale order line price history
This module extends the functionality of Sales to allow you to see the price history of a product from a sale order line and set one of these old prices in the sale order line.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds a history button on each sale order line that shows the prices previously given to the same product for that customer, and lets you copy an old price and discount back onto the current line.
On a sale order, each order line now shows a small history icon next to the unit price (in both list and kanban views of the order lines). Clicking it opens a pop-up called "Price history per customer" listing past sale order lines for the same product and customer.
The pop-up shows, for each past line, the order, the customer, the order date, the quantity, the unit price and the discount (discount only for users allowed to use discounts on sale lines). Two options refine the search: - Include quotations: also show draft and sent quotations, not only confirmed and done orders. - Include commercial entity: include the customer's parent company and its contacts (on by default).
Quotation lines appear highlighted. The number of past lines shown is limited by a system setting (20 by default).
Each history row has a check button that copies that old unit price and discount onto the current order line and closes the pop-up. The history icon is hidden once the line has been invoiced.
The module touches sale.order.line (adding the order's customer on the line) and adds two helper models, sale.order.line.price.history and sale.order.line.price.history.line, available to sales users.
Depends on
Models and fields (3)
- sale.order.line · extends an existing modelorder_partner_id
- sale.order.line.price.history · new modelline_ids (History lines), partner_id (Customer), product_id (Product), include_quotations, sale_order_line_id (Sale order line), include_commercial_partner (Include commercial entity)
- sale.order.line.price.history.line · new modeldiscount, order_id, history_id (History), partner_id, price_unit, order_state, product_uom_qty, sale_order_line_id, sale_order_date_order, target_sale_order_line_id, history_sale_order_line_id (history sale order line)
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-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To use this module, you need to:
- Go to System Parameters and configure the
sale_order_line_price_history.order_line_limitparameter to limit the number of Sale Order Lines to show on the Wizard. - Go to Sales -\> Quotations and select a Quotation. Default is 20 lines.
- Click on the new clock button in one of the sale order lines.
- A pop-up will open and you will see the price history for the product of the sale order line and for the customer of the sale order.
- You can select other customer or leave it empty to see the price history for all customers.
- You can also set the price of one of the price history lines in the sale order line. To do that, you have to open the price history line desired and click the smart button named Set price.
No verified information in OCA: Installation, Configuration.
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.
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.