OdooWiki OCA HUB

Sale Coupon Validity Notification

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

When a coupon is generated by a sales order, if it is modified or cancelled and no longer meets the promotion program requirements that generated it, the coupon becomes invalid. To avoid confusion and errors in billing if the coupon was applied to another sales order while it was valid, this module generates an activity and a note recording the situation in the sales order where the coupon is applied. This way, users can manage the use of coupons more effectively in their sales orders, avoiding errors and improving the efficiency of their sales processes.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

When a coupon linked to a sales order expires, Odoo automatically posts a note on that order and schedules a warning activity for the salesperson, so they know the coupon must be removed.

This module adds an automatic check on coupons used in sales orders. When a coupon's status changes to expired, Odoo looks at the coupon's original sales order and the sales order where the coupon is being used.

If both exist, two things happen on the sales order where the coupon is applied:

  • A message is posted in the order's chatter saying that the coupon has expired, with a link to the coupon program.
  • A warning activity is created for the salesperson responsible for that order, titled "Coupon expired", with a note telling them to remove the coupon from the order.

This helps avoid billing mistakes when a coupon was applied to an order while it was still valid, but later became invalid because the original order was changed or cancelled. The activity appears in the usual Odoo activity list, so the salesperson can follow up.

The module only extends the coupon.coupon model and does not add new menus or screens. It works together with the sale coupon features already present in Odoo.

Depends on

sale_coupon
Models and fields (1)
  • coupon.coupon · 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: 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:

  • Go to Sales > Products > Promotion programs and create a promotions program to generate a coupon with a sales order (by checking the Send coupon option).
  • Create a sales order that meets the requirements of the previous promotions program and click on Save.
  • Click on Promotions and confirm the order. Now, the status of the coupon is "Valid".
  • View the code of the generated coupon, create another sales order for the same customer, and apply the coupon.
  • Modify or cancel the sales order that generated the coupon, and then click on Promotions again.
  • Now, the status of the coupon should be "Expired" and in the sales order where it was applied, there should be a note and an activity reflecting that the coupon is no longer valid.

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.