Sale Loyalty Initial Date Validity
This module extends the functionality of loyalty_initial_date_validity to make checks when applying a promotion based on the start date of the promotion.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0When a sales order is created or edited, Odoo only offers promotions and loyalty programs whose start date has already arrived, so future-dated promotions cannot be applied by mistake.
This module adds a date check to the promotion and loyalty programs that Odoo suggests on a sales order. It works together with the sale loyalty features and the base rule that validates a promotion's initial date.
What changes for users:
- On a sales order, only promotions and loyalty programs that have no start date or whose start date is today or earlier are proposed.
- Promotions that are planned to start in the future are hidden from the sales order until their start date arrives.
- The same rule is applied to the rewards/triggers linked to those programs, so a future program's reward cannot be triggered either.
The check is based on the current date in the user's time zone, so it follows the company/user calendar day rather than a fixed server date. It extends the existing logic of sale.order by adding the date condition to the program search and to the trigger search. No new menus, buttons, reports or scheduled jobs are added; the module only refines which promotions are available when working on a quotation or sales order.
Depends on
Models and fields (1)
- sale.order · extends an existing model
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-03Confirmation 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.0Usage
Source · Odoo 16.0To use this module, simply go to edit or create a promotion and set a start date in the "Start date" field and then apply the promotion to a sales 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.