OdooWiki OCA HUB

Base Global Discount

base_global_discount folder_open OCA/server-backend open_in_new
Base License: AGPL-3

Base module to have global discounts applied to either sales or purchases. It doesn't do much for itself, so account_global_discount or purchase_global_discount should be installed to benefit from it.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

This module lets you define global discount records (name, percentage, sales or purchases scope, company) and assign them to customers or suppliers. It also adds a per-product option to exclude a product from global discounts.

This is a foundation module: it creates the discount definitions and the places to assign them, but the actual application on orders comes from companion modules.

What you can do: - Create and manage global discounts with a name, a percentage, a scope (Sales or Purchases) and a company, from the Global Discounts menu. - Assign sale global discounts to a customer and purchase global discounts to a supplier on the partner form. - Tick "Don't apply global discount" on a product so it is left out of global discount calculations.

Business rules and behaviours: - Discounts are ordered by a sequence number, so you control the order in which they are applied. - The discount name is shown together with its percentage, for example "Summer (5.00%)". - Global discounts are filtered by company: users only see discounts of companies they belong to (or those with no company). - Only users in the "Manage Global Discounts" group can create, edit or delete discounts; other users can only read them. - The product exclusion checkbox is only visible to that group, and on products with several variants it is only editable at variant level.

Where it appears: - A Global Discounts menu with a list and form. - Extra fields on the customer and supplier forms. - An extra field on the product form.

Depends on

product

Required by other modules

Menus it adds

Global Discounts
Models and fields (4)
  • res.partner · extends an existing modelcustomer_global_discount_ids (Sale Global Discounts), supplier_global_discount_ids (Purchase Global Discounts)
  • global.discount · new modelname (Discount Name), discount, sequence, company_id (Company), discount_scope
  • product.product · extends an existing modelbypass_global_discount (Don't apply global discount)
  • product.template · extends an existing modelbypass_global_discount (Don't apply global 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/server-backend.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Go to Settings \> Users, choose yours and set Manage Global Discounts.
  • Go to Settings \> Parameters \> Global Discounts
  • Choose the discount scope (sales or purchases).
  • You can also restrict it to a certain company if needed.

You can assign global discounts to partners as well. You'll need the proper permission (Manage Global Discounts):

  • Go to a partner that is a company.
  • Go to the Sales & Purchases tab.
  • In section sale, you can set sale discounts.
  • In section purchase, you can set purchase discounts.

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.