OdooWiki OCA HUB

Sale Global Discount

sale_global_discount folder_open OCA/sale-workflow open_in_new
Sales Management License: AGPL-3

Apply global financial discounts to sales that will be transmited to invoices and accounting.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Apply global discounts to sales orders, automatically carried over to invoices and shown on the quotation/sales order report.

This module lets you apply one or more global discounts to a sales order. The discounts are taken from the customer's global discount settings and can be edited on the order form by users with the global discount permission.

On the sales order form, a new field shows the selected global discounts. The totals area displays the untaxed amount before discounts and the total global discount amount. The order's untaxed, tax and total amounts are recalculated after applying the discounts.

When you confirm the order and create an invoice, the global discounts are copied to the invoice. The printed quotation/sales order report also shows the subtotal before discounts and the global discount amount.

Business rules: if global discounts are used, every line must have taxes, and incompatible tax combinations are blocked with an error. Products can be marked to bypass global discounts. The module also adjusts tax calculations so that taxes are computed on the discounted price.

Required by other modules

Models and fields (3)
  • sale.order · extends an existing modelglobal_discount_ids (Sale Global Discounts), amount_global_discount (Total Global Discounts), global_discount_ids_readonly (Sale Global Discounts (readonly)), amount_total_before_global_discounts (Amount Total Before Discounts), amount_untaxed_before_global_discounts (Amount Untaxed Before Discounts)
  • account.tax · extends an existing model
  • sale.order.line · extends an existing model

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 13.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module please refer to configure section of the base_global_discount module.

To use this module, you need to:

  • See usage section of the base_global_discount module.
  • Create a new sale order and choose a partner.
  • If the partner has customer global discounts set, those will be applied to the order by default.
  • Otherwise, you can set them manually from the header of the sale order.
  • In the order footer, you can see the computed discounts.
  • When you create an invoice from the order, the proper global discounts will be applied on it.

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.