OdooWiki OCA HUB

Sale Pricelist Triple Discount

sale_pricelist_triple_discount folder_open OCA/sale-workflow open_in_new
Sale License: AGPL-3

This module allows the user to specify all three discounts in the pricelist. The specified discounts will be then present in the quotation and sale order lines.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you set up to three successive discounts on a pricelist rule, so quotations and sale order lines automatically receive the combined triple discount from the pricelist.

This module extends the pricelist rules used in Sales so that a single rule can carry three stacked discounts instead of one.

Where it appears: - On the Pricelist Rule form (the screen where you configure a pricelist item), two extra fields, Discount 2 and Discount 3, are added next to the existing discount. They are shown when the rule is based on a percentage price or on a formula, and hidden otherwise.

What it does: - When a sale order line is created or its product, unit of measure or quantity changes, the line picks up the first, second and third discounts from the matching pricelist rule. - The three discounts are combined into a single effective discount percentage, which is then used to compute the price and the rule description shown on the pricelist rule. - The combined discount is applied only when the pricelist uses the "without discount" policy; in that case the line's discount fields are filled from the rule. - Recomputing prices on a sale order also refreshes the discounts on its lines.

Areas touched: - Pricelist items (product.pricelist.item) gain the two new discount fields and the logic to merge them. - Sale orders and sale order lines (sale.order, sale.order.line) gain stored, editable discount fields that are computed from the pricelist rule.

No new menus, reports, emails or scheduled actions are added by this module.

Models and fields (2)
  • sale.order.line · extends an existing modeldiscount2, discount3
  • product.pricelist.item · extends an existing modeldiscount2 (Discount 2 (%)), discount3 (Discount 3 (%))

Text generated by AI (DeepSeek) from reading the Odoo 16.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

Add discounts percentage value to pricelist rules. The additional discounts are only visible for Discount and Formula Computation pricelist rules.

  • Configure a pricelist with Discount Policy = Show public price & discount to the customer
  • Configure a pricelist rule with Discount or Formula Computation and the three discounts
  • Create a sale order and select the configured pricelist
  • Add a product in the sale order, matching a rule of the configured pricelist
  • Check that the three discounts defined on the pricelist item will populate the three discounts in the sale order line

No verified information in OCA: Installation.

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.