OdooWiki OCA HUB

Loyalty Initial Date Validity

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

This module extends the functionality of Loyalty to add the date_from field to promotions. The aim of this is to be able to set a start date for a promotion. It's a technical base to be extended with top level functionality (sales, pos).

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a Start Date field to loyalty programs and promotions, so you can define when a promotion becomes valid. It also checks that the start date is not later than the end date.

This module extends the Loyalty app so that each loyalty program or promotion can have a clear validity period with a start date.

  • On the loyalty program form, a new Start Date field appears next to the existing End date. The start date is included in the validity period, meaning the promotion is valid from that day onwards.
  • The Start Date field is hidden for gift card and e-wallet program types, so it only shows for programs where a start date makes sense.
  • A business rule prevents saving a program where the start date is later than the end date. If you try, Odoo shows an error: the validity period's start date must be anterior or equal to its end date.
  • The module only adds the date fields and the check; it does not by itself apply the dates to sales orders or point of sale. It is a technical base meant to be extended by other modules.

It touches the loyalty.program model and the loyalty program form view.

Depends on

loyalty

Required by other modules

Models and fields (1)
  • loyalty.program · extends an existing modeldate_to (End date), date_from (Start Date)

Text generated by AI (DeepSeek) from reading the Odoo 16.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 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/sale-promotion.

terminal Installation and usage

OCA documentation · Odoo 16.0

To use this module simply go to edit or create a promotion and set a start date in the field labelled "Start date".

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.