OdooWiki OCA HUB

Sale Coupons Rewards from domain

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

This module extends coupon_domain_free_product and apply that free product domain only for those products in the sale order.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

This module lets you create coupon programs that give free products based on a product domain, automatically adding 100% discounted reward lines to sales orders when the domain conditions are met.

This module extends coupon programs to support a reward type called 'free product domain'. When a customer's order contains products that match the domain defined in the coupon program, Odoo automatically adds new order lines for the free products, each with a 100% discount.

  • The reward lines are created for each valid product from the domain, with quantity calculated based on the ordered quantity and the program's minimum quantity rule. If the program has a maximum quantity for reward products, that limit is applied.
  • The module ensures that only products from the order that match the domain are considered for the reward. If the program has a strict per-product limit, it checks that each product meets both the minimum quantity and minimum amount before being eligible.
  • When promotions are updated or removed, the module correctly removes invalid reward lines and expires related coupons, while preserving valid free product lines.
  • The order count on the coupon program is computed based on the linked order lines, and the 'Sales Orders' button on the program shows only orders that used that program.
  • This functionality is integrated into the sale order workflow, affecting sale.order, sale.order.line, and coupon.program models.
Models and fields (3)
  • sale.order · extends an existing model
  • coupon.program · extends an existing model
  • sale.order.line · extends an existing model

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: 2 confirmed, 7 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

Follow the steps described in coupon_domain_free_product to set the desired domain and products to reward.

Once configured, apply the programs as usual to get the expected rewards.

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.