pos_reward_point_digits/__manifest__.py

28 lines
1.2 KiB
Python

{
'name': 'POS Reward Point Digits',
'version': '1.0',
'category': 'Point of Sale',
'summary': 'Configure the decimal precision of reward points in POS loyalty rules',
'author': 'Abdul Aziz Amrullah',
'description': """
POS Reward Point Digits Module
==============================
This module provides a dedicated setting within the Point of Sale configuration to manage the decimal precision of the 'reward_point_amount' field used in Odoo's loyalty programs.
By default, Odoo restricts this field to a standard 2 decimal places. With this module installed, administrators can:
- Dynamically alter the allowed digits after the decimal point (e.g., from 2 to 4 digits).
- Ensure constraints and backend data storage for rewards align with the configured precision.
- Prevent truncation of high-precision reward point values.
A new 'Reward Point' decimal precision record is created, and the POS Settings view is extended to include an easy-to-use integer widget under the 'Pricing' section.
""",
'depends': ['point_of_sale', 'pos_loyalty', 'loyalty'],
'data': [
'data/decimal_precision_data.xml',
'views/res_config_settings_views.xml',
],
'installable': True,
'auto_install': False,
'license': 'LGPL-3',
}