OdooWiki OCA HUB

Coupons Rewards from domain

coupon_domain_free_product folder_open OCA/sale-promotion open_in_new
Sale License: AGPL-3

Base module for allowing to define the same reward products as the products domain.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a new coupon reward type called Product Domain, letting you give free products chosen by a product domain instead of a single fixed product, with an optional maximum quantity.

This module extends the coupon and promotion features already in Odoo. When you set up a coupon program, you can now pick a reward type called Product Domain in addition to the standard reward types.

  • On the coupon program form, extra fields appear only when this reward type is selected: a quantity and unit of measure for the reward, and a maximum reward quantity (0 means no limit).
  • A new option, strict per product limit, can be shown on the program form. It changes how the minimum quantity or amount is calculated when the reward is a discount on selected products: the minimum is computed separately for each product that matches the product domain.
  • Rewards of this type are displayed with the label Free Products in lists and selection fields.

The module touches the coupon reward and coupon rule models and the coupon program form view. It does not add new menus or reports. The code is short and focused, so no other behaviours such as emails or scheduled jobs are added.

Depends on

coupon

Required by other modules

Models and fields (2)
  • coupon.rule · extends an existing modelstrict_per_product_limit
  • coupon.reward · extends an existing modelreward_type, reward_product_max_quantity (Max reward quantity)

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

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

terminal Installation and usage

OCA documentation · Odoo 15.0

To configure free product rewards from domains:

  • Go to Sales > Products > Coupon Programs and select or create a new one.
  • Choose the criteria of appliance you want to use and the minimum quantities, that will be used to calculate the times the rewards can be applied.
  • On the Reward Type field choose Free Product Domain.
  • Set the proper domain and rules.
  • If you want to apply the limits for every product in the promotion limit, set the Strict per product limit checkbox.

An example with the domain [("id", "in", [1, 2])], strict limits and minimum quantity of 2 units:

===== ================== Qty Products ===== ================== 4 product.product(1,) 2 product.product(2,) 6 product.product(3,) ===== ==================

For product.product(1,) we'll get 2 units as reward. For product.product(2,) we'll get just 1. We'll get nothing from product.product(3,)

No verified information in OCA: Installation, Usage.

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.