Loyalty Card Fixed Expiration Date
This module introduces the ability to set a fixed expiration date for gift cards.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Lets you set a number of days on a gift card loyalty program so that each new card automatically gets a fixed expiration date counted from the day it is created.
This module adds a simple setting to loyalty programs of the gift card type. On the loyalty program form, next to the portal point name field, a new "Duration in days" field appears, but only when the program type is a gift card; for other program types it stays hidden.
When a loyalty card is created for a program that has a duration in days greater than zero, the system automatically fills in its expiration date as today's date plus that number of days. If the card is created with an expiration date already provided, that date is kept and nothing is overwritten.
- Adds a duration in days setting on gift card programs.
- Automatically computes the expiration date of new loyalty cards from that duration.
- Leaves manually supplied expiration dates untouched.
- If no duration is set (zero or empty), no expiration date is calculated.
The module extends the existing loyalty card and loyalty program models and only changes the loyalty program form view. It does not add new menus, reports, emails or scheduled jobs, and it does not change how points are earned or spent.
Depends on
Models and fields (2)
- loyalty.card · extends an existing model
- loyalty.program · extends an existing modelduration_days
Text generated by AI (DeepSeek) from reading the Odoo 17.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/sale-promotion.
terminal Installation and usage
OCA documentation · Odoo 17.0Usage
Source · Odoo 17.0Follow these steps to configure and use the module:
- Navigate to Point of Sale -> Products -> Gift Cards & eWallet.
- Create a new record and set the Program Type to Gift Card.
- Specify the Duration Days.
- Generate gift cards without setting an expiration date.
- The generated gift cards will automatically have an expiration date set to today's date + Duration Days.
- If you manually set an expiration date, the system will use this specified date instead.
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.