Sale Pricelist Display Surcharge
In standard Odoo the discount is only displayed if it benefits the customer. In the case of wanting to always show the discount (for example a surcharge), this module allows to choose whether to show or not.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you always show a price surcharge (negative discount) to customers on sales orders, instead of hiding it as standard Odoo does. You enable it per pricelist rule with a new checkbox.
In standard Odoo, a discount is only displayed when it benefits the customer; a surcharge (a price increase) is normally hidden. This module adds a new checkbox "Show Surcharge" on each pricelist rule (the price list item form, in the rule limits group).
When that checkbox is enabled on the pricelist rule used by a sales order line, the module changes how the line price and discount are computed:
- The unit price shown on the line is based on the price before the discount/surcharge is applied, so the surcharge becomes visible.
- The discount field is automatically filled with the resulting percentage, which will be negative when it is a surcharge.
- The calculation only runs when the line has no discount yet, the order has a pricelist, and the matching pricelist rule has the option enabled. A division-by-zero guard avoids errors when the base price is zero.
It touches the sales order line (sale.order.line) and the pricelist item (product.pricelist.item) models, and adds a field to the pricelist item form view. No new menus or reports are added; the option appears directly inside the existing pricelist rule configuration screen.
Depends on
Models and fields (2)
- sale.order.line · extends an existing model
- product.pricelist.item · extends an existing modelshow_surcharge
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: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.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 on a pricelist
- Set a pricelist rule
- Check the "Show Surcharge" box, from now when using this rule the discount will be always displayed (if the pricelist is checked as show to customers).
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.