Sale Promotion Rule Display Discount Amount
Once the addon 'sale_discount_display_amount' is installed, the total wihout discount ant the value of the discount is displayed on the sale orders. These amounts are computed from the rate of the discount applied on each sale order line. Nevertheless, once you use the 'sale_promotion_rule' a discount amount can be applied on a sale order. This new kind of discount is materialized by a new line automatically to the sale order line with a specific product and a negative amount. The goal of this addon is to also take into account this kind of discount into the total without discount and the value of the discount on the sale order.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0This module makes the discount amount and total without discount on a sale order include discounts created automatically by sale promotion rules, so the figures shown match the real promotion applied.
When you use sale promotion rules, Odoo adds a special line to the sale order for the promotion discount. This module makes sure that discount is counted in the discount total and in the total without discount shown on the sale order.
- It extends the sale order calculation so that lines marked as promotion lines are included.
- For each promotion line, its amount is added to the discount total and to the total without discount.
- If the promotion line amount is zero or positive, it is treated as a negative discount so the totals stay correct.
- The module only changes the computed values; it does not add new menus, buttons, or reports.
It works together with the modules that provide the discount display and the promotion rules. The result is that the discount amount and the total before discount on a sale order reflect both manual discounts and promotion discounts.
Models and fields (1)
- sale.order · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 14.0Usage
Source · Odoo 14.0To use this module, you need to:
- Go on a sale order
- Set a discount on a line
- The value of the discount is dislayed in the total section as well as the total without it.
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.