OdooWiki OCA HUB

Sales Coupon based on Sales Order values

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

This module adds an option to configure your coupon conditions based on the Sales Order values.

Example: "If Sales Team is 'Europe' apply the following discount'

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds an extra condition to coupon and promotion programs so they only apply to sales orders that match a chosen order filter, for example a specific sales team or customer.

This module extends the coupon and promotion features of Odoo so that a discount can be limited to certain sales orders. On the promotion program form, next to the existing partner condition, a new "Based on Order" field lets you build a filter on sales orders (for example, orders from a given sales team or with certain values).

When a customer tries to use a coupon or enters a promotion code, Odoo checks whether the order matches that filter. If it does not, the coupon or code is refused with the message "The order doesn't have access to this reward."

The same check is also applied when Odoo automatically looks for promotion programs that could apply to an order, so programs whose order filter does not match are simply left out. Programs meant for the next order are handled separately from those applied on the current order.

  • New field "Based on Order" on promotion programs and coupon rules, edited with a sales order filter builder.
  • Coupon validation and promotion code validation both respect the order filter.
  • Automatic program selection for an order also respects the filter.
  • Touches the coupon, promotion program and coupon rule records, and the sales order data used by the filter.

Depends on

sale_coupon
Models and fields (3)
  • coupon.rule · extends an existing modelrule_order_domain (Based on Order)
  • coupon.coupon · extends an existing model
  • coupon.program · extends an existing modelrule_order_domain (Based on Order)

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: 3 confirmed, 6 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

Open or create a new Promotion Program in the Sales/Products/Promotion Programs menu.

In Conditions section the following new option is available:

  • Based on Order configure an order-based domain to apply the promotion

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.