OdooWiki OCA HUB

Sale Order General Discount

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

This module allows to set a general discount in a sales order. This general discount is set to each line order in the standard discount field.

You can configure:

  • a default general discount on customers
  • On each product define if general discount is applied

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a general discount field on sales orders that automatically fills the discount on every order line, with a default discount per customer and an opt-out flag per product.

This module lets you apply one discount percentage to a whole sales order instead of typing it line by line. On the sales order form, next to the totals, a new "Discount (%)" field appears; when you change it, the discount of the order lines is updated automatically.

  • Each customer can have a default discount, set on the customer form in the Sales & Purchases tab. When you pick that customer on a sales order, the general discount is filled in with that value.
  • Each product can be marked with "Don't apply general discount". Products marked this way keep their own line discount and are not overwritten by the order's general discount.
  • Down payment lines are also left untouched by the general discount.

The module touches sale.order, sale.order.line, res.partner, product.product and product.template. The customer discount is company-dependent, so different companies can hold different default discounts for the same customer. On product templates with several variants the opt-out checkbox is hidden and is managed per variant.

Depends on

sale
Models and fields (5)
  • sale.order · extends an existing modelgeneral_discount
  • res.partner · extends an existing modelsale_discount
  • product.product · extends an existing modelbypass_general_discount
  • sale.order.line · extends an existing modeldiscount
  • product.template · extends an existing modelbypass_general_discount

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 17.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

You need to install sale_management module for accessing the needed menus.

To use this module, you need to:

  • Create a sale order and set a discount, this discount will be set in all lines.
  • You can set a discount in a partner.
  • On product you can define if you apply general discount on sale order line linked to that product

No verified information in OCA: Configuration.

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.