OdooWiki OCA HUB

Point of Sale - Global Discount in Line

pos_global_discount_in_line folder_open OCA/pos open_in_new
Point Of Sale License: AGPL-3

Include POS order discount in line instead of adding discount product.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a setting in Point of Sale to apply the global discount directly on each order line instead of adding a discount product. When enabled, the discount percentage is written on every line.

This module extends the Point of Sale discount feature. In the Point of Sale settings, a new checkbox called "Add Discount in Line" appears next to the existing discount options. When you turn it on, the fields for choosing a discount product and a default discount percentage become hidden, because they are no longer needed.

At the Point of Sale screen, the discount button still asks for a percentage. If the new setting is active, that percentage is applied directly to every line of the current order as a line discount, and no discount product is added. If the setting is off, the original behaviour of the discount module is kept.

The module touches the pos.config model (where the setting is stored) and the res.config.settings model (where the checkbox is shown). It also changes the Point of Sale user interface through a JavaScript component that replaces the standard discount button behaviour. No new menus or reports are added.

Depends on

pos_discount
Models and fields (2)
  • pos.config · extends an existing modelglobal_discount_in_line (Add Discount in Line)
  • res.config.settings · extends an existing modelpos_global_discount_in_line

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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0

In POS settings tick Add Discount in Line.

No verified information in OCA: Installation, 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.