| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 335 |
| Technical Name |
auto_thousand_separator |
| License | OPL-1 |
| Website | https://github.com/hoangphamw |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 335 |
| Technical Name |
auto_thousand_separator |
| License | OPL-1 |
| Website | https://github.com/hoangphamw |
Auto Thousand Separator
Automatically format numeric inputs with thousand separators in real-time
🚀 Transform your numeric inputs! This module automatically adds thousand separators to monetary, float, and integer fields as you type, providing a smooth and professional user experience in Odoo forms.
🔢 Real-time Formatting
- Thousand separators appear instantly as you type
- Support for monetary, float, and integer fields
- Automatic cursor position adjustment
- Works with different locale settings
🎯 Easy Configuration
- Simple option: options="{'thousand_separator': true}"
- No code changes required
- Works on any existing Odoo field
- Compatible with all field widgets
🌍 Locale Aware
- Respects user's locale settings
- Correct thousand separators (comma, dot, space)
- Proper decimal point handling
- International number formatting
⚡ Lightweight & Fast
- Minimal JavaScript footprint
- Zero impact on page load time
- Efficient event handling
- No external dependencies
📸 Screenshot
Real-time thousand separator formatting in action
🛠️ Installation & Usage
Installation:
- Download and place the module in your addons directory
- Update the addon list in Odoo
- Install "Auto Thousand Separator"
Basic Usage:
<!-- Monetary Field -->
<field name="price_unit" widget="monetary" options="{'thousand_separator': true}"/>
<!-- Float Field -->
<field name="quantity" widget="float" options="{'thousand_separator': true}"/>
<!-- Integer Field -->
<field name="product_qty" widget="integer" options="{'thousand_separator': true}"/>
Example in Sale Order Lines:
<field name="order_line">
<tree>
<field name="product_id"/>
<field name="product_uom_qty" widget="float" options="{'thousand_separator': true}"/>
<field name="price_unit" widget="monetary" options="{'thousand_separator': true}"/>
</tree>
</field>
🦊
Odoo 16.0
Fully Compatible
🌐
All Browsers
Chrome, Firefox, Safari, Edge
🌍
All Locales
Supports international formatting
💡 How It Works
Simply add the option to any numeric field:
- Type "1234567" → Displays "1,234,567" instantly
- Works with: Sale orders, invoices, products, any numeric input
- Automatic: No user interaction required
- Professional: Consistent number formatting across your application
🎯 Perfect For
Financial applications, e-commerce platforms, inventory management, and any business that requires professional numeric input formatting in Odoo forms and lists.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module