OdooWiki OCA HUB

Account Fixed Triple Discount

account_invoice_fixed_triple_discount folder_open OCA/account-invoicing open_in_new
Accounting & Finance License: AGPL-3

Glue module between account_invoice_fixed_discount and account_invoice_triple_discount. When both are used on the same line a warning will appear to alert the user that the fixed discount will take priority and it's recommended to only use one.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a warning on invoices and bills when a line mixes a fixed discount with percentage discounts, and makes the fixed discount take priority in the calculation.

This module is a compatibility bridge between two discount features: fixed-amount discounts and triple (percentage) discounts. It does not add new menus; it changes how the invoice and bill form behaves.

When at least one invoice line has both a fixed discount and any percentage discount (discount 1, 2 or 3), a warning message appears at the top of the invoice lines area. The message explains that this combination is not supported, that the fixed discount will be used, and that one of the discount types should be removed to avoid confusion. The warning is only shown while editing.

Behind the scenes, the discount percentage on the line is recalculated from the fixed discount amount whenever a fixed discount is set, so the fixed discount wins. Lines that have a fixed discount are excluded from the normal percentage-discount recalculation. Also, when a line is copied or created, the system avoids automatically copying the percentage discount into the first discount field if a fixed discount is already present.

The module touches account.move and account.move.line, and it is installed automatically when both discount modules are present.

Models and fields (2)
  • account.move · extends an existing modelshow_discount_warning_label
  • account.move.line · extends an existing model

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/account-invoicing.

terminal Installation and usage

No verified information

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.

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.