d17f22cde77fd6dd0fb968b1b34883c56648e93e
When setting a float field, the web client rounds the value entered by the user using the instance.web.round_decimals method. Nevertheless, this is possible that this method returns unrounded float, due to the float precision For example, round_decimals(53.8, 2) returns 53.800000000000004 In order to compare this new float value to the old float value and check the eventual change), we need to check if the delta between the two is almost 0. This is the goal of the float_is_zero method introduced during this rev. which is comparable to the float_is_zero method already available in the openerp server, in openerp.tools. Float values compared using the simple === operator instead of this float_is_zero method will be regarded as different in some cases, according to the float value and the precision And the value of the field will be regarded as changed, which can lead to unwanted triggers of onchanges. opw-626635
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/8.0/odoo.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./odoo.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./odoo.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%