| data | ||
| models | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
POS Reward Point Digits (Odoo 19)
Overview
By default, the reward_point_amount field on the loyalty.rule model within the Odoo Point of Sale restricts inputs to the default 2 decimal places.
This custom module adds a configurable setting inside of the Point of Sale setup screen to allow you to specify the exact number of decimal precision digits for reward points.
Features
- Overrides the
reward_point_amountnumeric field to utilize a dynamic Point of Sale configuration. - Introduces a designated "Reward Point" Decimal Precision configuration.
- Provides an easy-to-access integer widget in
res.config.settingsfor POS administrators to adjust precision without needing to touch backend code or data files.
Installation
- Move the
pos_reward_point_digitsdirectory into your active Odoo 19customaddons path. - Log into your Odoo 19 database as an Administrator.
- Turn on Developer Mode.
- Go to Apps -> Update Apps List.
- Search for "POS Reward Point Digits".
- Click Activate.
Configuration
- Navigate to Point of Sale -> Configuration -> Settings.
- Scroll to the Pricing section.
- Locate the Reward Point Digits field.
- Set your desired integer value (e.g.
3or4) to allow that many digits behind the decimal place. - Click Save.
Going forward, when accessing any Loyalty Program configuration rule, the grant reward setting (reward_point_amount) will properly respect the precision set within your Point of Sale configurations.
Technical Details
- Module Dependence:
point_of_sale,pos_loyalty,loyalty. - Modifies
ir.ui.viewres_config_settings_view_formto append to the Pricing<block>. - Generates
dp_reward_pointwithin Odoo's internaldecimal.precisionregistry.