OdooWiki OCA HUB

Generate coupons in another coupon program in sales

sale_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

When a promotion is set to hand out its reward coupon through a different promotion, this module makes the coupon be created in that other promotion instead, and keeps the sales counters and coupon expiry consistent.

This module extends the coupon and promotion features of Odoo Sales. When a promotion is configured so that its reward coupon should actually be issued by another promotion (the "next" program), the module changes what happens at checkout.

  • The reward coupon is created in the destination promotion rather than in the promotion that triggered it, so the rules used to apply the coupon can differ from the rules used to generate it.
  • The sales counter shown on the destination promotion reflects the sales of the promotion that points to it, so the numbers stay meaningful.
  • The button that opens the related sales orders from a promotion opens the orders of the destination promotion instead.
  • Coupons that were generated but whose promotion is no longer applied on the order are automatically set to expired and removed from the order's generated coupons, avoiding leftover valid coupons.

It touches the coupon.program and sale.order models. No new menus or screens are added; the behaviour appears inside the existing promotion configuration and sales order flows.

Models and fields (2)
  • sale.order · extends an existing model
  • coupon.program · 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 13.0

Confirmed on 2026-11-03 in branch 13.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 and a promotion program as told in coupon_promotion_generate_coupon readme.

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.