31 lines
1.9 KiB
Python
31 lines
1.9 KiB
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
{
|
|
'name': 'POS Loyalty Auto Level Update',
|
|
'version': '1.0',
|
|
'category': 'Sales/Point of Sale',
|
|
'summary': 'Automatically update customer membership level after POS transactions',
|
|
'author': 'Abdul Aziz Amrullah',
|
|
'description': """
|
|
POS Loyalty Auto Level Update
|
|
================================
|
|
This module automates the management of customer loyalty membership tiers directly within the Point of Sale system.
|
|
|
|
Key Features:
|
|
1. **Automated Lifetime Spend Tracking**: After every POS sale or refund, the module calculates the customer's cumulative purchase amount from all `paid` or `done` `pos.order` records.
|
|
2. **Tier Evaluation**: Compares the customer's total spend against the `minimum_spend` thresholds defined on `loyalty.program` records (specifically those marked as `multi_level_membership`).
|
|
3. **Seamless Upgrades/Downgrades**: Automatically determines the highest qualifying membership level and updates the customer's `membership_level_id` on their `res.partner` profile.
|
|
4. **Intelligent Point Consolidation**: If a customer changes tiers, the module seamlessly sweeps loyalty points from any of their older tier cards and consolidates them into the new membership card. It hooks directly into the POS frontend's point confirmation (`confirm_coupon_programs`) to ensure that even points earned in the current transaction are properly swept over.
|
|
5. **Detailed Logging**: Provides developer-level console logs in the browser to trace the loyalty processing and synchronization steps during checkout.
|
|
""",
|
|
'depends': ['point_of_sale', 'pos_loyalty'],
|
|
'data': [],
|
|
'assets': {
|
|
'point_of_sale._assets_pos': [
|
|
'pos_loyalty_auto_level/static/src/app/**/*',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'application': False,
|
|
'license': 'LGPL-3',
|
|
}
|