33 lines
1.6 KiB
Python
33 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
{
|
|
'name': 'POS Loyalty Reward Quantity Limit',
|
|
'version': '1.0',
|
|
'category': 'Sales/Point of Sale',
|
|
'summary': 'Limits the maximum reward product quantity applied in POS to the value configured in the reward rule.',
|
|
'author': 'Abdul Aziz Amrullah',
|
|
'description': """
|
|
POS Loyalty Reward Quantity Limit
|
|
===================================
|
|
This module introduces a strict boundary on the total quantity of a reward product that can be applied within a single Point of Sale (POS) order.
|
|
|
|
Key Features:
|
|
- Replaces Odoo's default multiplier system for loyalty reward products.
|
|
- Enforces the 'Quantity Rewarded' (reward_product_qty) field on the Loyalty Reward rule as an absolute maximum limit.
|
|
- Ensures that regardless of how many points a customer has accumulated, they cannot claim more than the specified limit of the reward product in a single transaction.
|
|
- Automatically adjusts the deducted loyalty points to correctly match the capped quantity, preventing overcharging of points.
|
|
|
|
Use Case:
|
|
Ideal for retail environments running promotions such as 'Redeem X points for 1 Free Item'. By default, if a user has 3x points, Odoo allows them to claim 3 free items at once. This module strictly restricts the reward so only 1 free item can be claimed per transaction, exactly matching the configuration in the backend.
|
|
""",
|
|
'depends': ['point_of_sale', 'pos_loyalty'],
|
|
'data': [],
|
|
'assets': {
|
|
'point_of_sale._assets_pos': [
|
|
'pos_loyalty_reward_qty_limit/static/src/app/models/pos_order.js',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'application': False,
|
|
'license': 'LGPL-3',
|
|
}
|