OdooWiki OCA HUB

Generate coupons in another coupon program

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

This module allows to generate pending coupons from a promotion to another one so the rules to apply the coupon could be different from the ones to generate it.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Lets you link a coupon program to a second coupon program so the coupons it generates follow the rules of that other program. A button on the program form shows and opens the coupons of the linked program.

This module extends coupon programs (the promotion setup used by the Coupons app) with a new field called Next Order Program. You can only pick another program of type coupon program.

On the coupon program form, the field appears only when the program applies on the next order. A note explains that the coupons generated by this program will follow the rules defined in the Next Order Program. If you switch the program back to applying on the current order, the linked program is cleared automatically, because the combination would behave unexpectedly.

When a program is linked to another one, the reward settings of the original program are hidden, since the rewards come from the linked program instead. The usual coupon counter is also hidden and replaced by a button labelled Next Program Coupons, which shows how many coupons the linked program has and opens the list of those coupons when clicked.

In short, it separates the rule that creates a coupon from the rule that later applies it, and gives you a direct shortcut to the coupons of the destination program.

Depends on

coupon

Required by other modules

Models and fields (1)
  • coupon.program · extends an existing modelnext_order_program_id

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 use this module, you need to have configured:

  • A coupon program which will be the one where the coupons will be generated.
  • A promotion program with applicability on the next order and the first program selected as next order program.

Then, when a user meets the promotion program requisites, a pending coupon will be generated in the coupon program.

The user will be able to enjoy it in a later order as usual but the rules will be those configured in that 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.