OdooWiki OCA HUB

Coupon Promotion Product Exclude

sale_coupon_product_exclude folder_open OCA/sale-promotion open_in_new
Sales Management License: AGPL-3

This module extends promotion programs allowing to apply them to order excluding products matching the domain.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets you set a product filter on a promotion so that matching products are left out when Odoo calculates the discount. The excluded products are ignored for the reward, both for whole-order and per-line discounts.

This module adds an extra option to promotion programs (coupons) in Odoo Sales. On the promotion form, right after the setting that says what the discount applies to, you get a new field called "Exclude Products" where you can build a filter (domain) on products. The field is hidden when the reward type is a free product, so it only shows for discount-type rewards.

When a promotion is applied to a sales order, Odoo normally looks at the order lines to decide the discount. With this module, any line whose product matches your exclusion filter is skipped:

  • It is removed from the lines used as the discount base.
  • It is removed from the paid lines considered for the reward.
  • It is ignored when Odoo looks for the cheapest line (used by some promotion rules).
  • For per-line percentage discounts, an excluded product simply gets no discount.

So if you run a 10% promotion but do not want it to apply to, for example, a specific product category or a set of gift items, you just enter that filter once on the promotion and those products are automatically left out of the calculation. No manual line editing is needed on each order.

The module works together with the coupon and promotion features of sale_coupon and touches the promotion program, its reward configuration and the sales order calculation logic.

Depends on

sale_coupon
Models and fields (2)
  • sale.order · extends an existing model
  • coupon.reward · extends an existing modelexclude_products_domain (Exclude Products)

Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-promotion.

terminal Installation and usage

OCA documentation · Odoo 14.0

To apply the discount over the order excluding products matching the domain:

  • Open or create a new Promotion Program in the Sales/Products/Promotion Programs menu.
  • Set the reward type as Discount.
  • Set domain Exclude products domain.
  • Choose any Discount Apply On.

The discount will be applied according to the rules except for the products that match the Exclude products domain criterion.

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.