pos_loyalty_expiration_custom/__manifest__.py

39 lines
1.7 KiB
Python

# -*- coding: utf-8 -*-
{
'name': 'POS Loyalty Expiration Custom',
'version': '1.0',
'category': 'Sales/Point of Sale',
'summary': 'Enforce custom expiration dates on POS Loyalty Cards',
'author': 'Abdul Aziz Amrullah',
'description': """
POS Loyalty Expiration Custom
=============================
This module extends the core Point of Sale loyalty functionality to enforce a strict expiration logic based on a `custom_end_date` field.
Key Features:
-------------
* **Custom End Date Field:** Adds a custom "End Date" (`custom_end_date`) to the Loyalty Card view (backend).
* **Strict POS Validation:** When a loyalty card's custom end date has passed, the Point of Sale system will immediately block the card.
* **Halt Point Earning:** Expired cards are blocked from accumulating new reward points for any purchases made.
* **Block Reward Claims:** Rewards linked to expired loyalty cards are completely hidden and cannot be claimed by the user.
This ensures seamless and autonomous handling of promotional periods or membership validity strictly through an isolated date field without affecting the core functionality of regular expiration parameters.
""",
'depends': ['pos_loyalty'],
'data': [
'views/loyalty_card_views.xml',
],
'assets': {
'point_of_sale._assets_pos': [
'pos_loyalty_expiration_custom/static/src/app/models/loyalty_card.js',
'pos_loyalty_expiration_custom/static/src/app/models/pos_order.js',
'pos_loyalty_expiration_custom/static/src/app/services/pos_store.js',
],
},
'installable': True,
'application': False,
'auto_install': False,
'license': 'LGPL-3',
}