Sale Order General Discount Triple
A bridge between Sale Order General Discount() and Sale Triple Discount() module to set the general discount on any of the 3 discount field on sale order lines.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you choose which of the three discount fields on a sale order line receives the order's general discount and which receives the pricelist discount, so both discounts can coexist on the same line.
This module connects two existing features: the general discount on a sale order and the three discount columns on each order line. Without it, both discounts would compete for the same field.
In Settings (Sales area, next to the coupon settings) two new dropdowns appear: - General discount: choose Discount 1, Discount 2 or Discount 3 to decide where the order's general discount is written. - Pricelist discount: choose which of the three fields receives the discount coming from the pricelist.
When a line is created or its product, unit or quantity changes, Odoo automatically fills the chosen fields. If the pricelist discount is assigned to a field, the line computes the discount from the difference between the pricelist price before discount and the final pricelist price. Otherwise, if the general discount is assigned to that field, the line copies the order's general discount. Fields that are not selected are reset to zero.
Some lines are left untouched: reward lines from coupons/promotions, and products flagged to bypass the general discount. Changing the general discount on the order also refreshes the lines. Delivery lines and price recomputations trigger the same recalculation.
The module touches sale.order, sale.order.line and the settings screen (res.config.settings).
Depends on
Models and fields (3)
- sale.order · extends an existing model
- sale.order.line · extends an existing modeldiscount1, discount2, discount3
- res.config.settings · extends an existing modelgeneral_discount, pricelist_discount
Text generated by AI (DeepSeek) from reading the Odoo 18.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 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0To use features of this module, you need to:
- Go to Settings \> General Settings \> Pricing
- Under pricing section, select your prefered Discount type from 'General Discount' field and the same for 'Pricelist Discount'.
- Option 'No apply' will disable functionality, so this kind of discount type won't be applied on lines.
- The selected global discount type among the 3 discounts will be automatically parsed on sale order line while using 'Discount %' text field.
- If pricelist has a discount, it will be applied on the selected pricelist discount.
- If 'General Discount' and 'Pricelist Discount' have the same discount field, 'General Discount' will be applied.
Issues
If you want to use pricelist discount its recomended, in order to avoid conflicts with other modules, to put it in first discount field.
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.