This module allows the salesmen to tell if there are pending coupons that customer can enjoy in his sales order.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0Shows salespeople how many coupons a customer still has available and lets them apply one directly from the sales order.
When you open a sales order, Odoo now counts the coupons belonging to that customer that are still new or sent and not already linked to this order. If there is at least one, a smart button with a gift icon appears in the order's button box showing the number of pending coupons.
Clicking that button opens a kanban view listing the customer's pending coupons, with the coupon program, the coupon code and the discount product. For each coupon, Odoo checks whether it can actually be used on the current order; if it can, an Apply button is shown, and clicking it applies the coupon to the order and returns you to the order form. If it cannot be used, a message says the coupon is not applicable in this order.
The module extends sale.order and coupon.coupon. The pending coupon count is recalculated when the customer changes, and the applicability check is based on the order date and customer. The coupon list is filtered to coupons in state new or sent that are not already used on this order.
Depends on
Required by other modules
Models and fields (2)
- sale.order · extends an existing modelpending_partner_coupon_count
- coupon.coupon · extends an existing modelcan_be_applied_to_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-03Confirmation 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.0Usage
Source · Odoo 15.0To use this module, you need to:
- Generate some coupons for your partner.
- Go to a quotation/sales order from that partner and a smart button will show that there are pending coupons.
- Click on the smart button and you'll be able to apply those which conditions are met by the order.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.