ab42507d460125c5ee81bb6b4b859146494339ac
Before this fix, there was an issue when you changed the value of a datetime field by editing direclty the input (without using the datepicker popup). If this value was equal to the offset of your timezone, the new value wasn't saved. The problem was that no event was triggered by the 'bootstrap-datetimepicker' lib because it considered that the old datetime and the new datatime were the same... In odoo JS, we always manipulate UTC moment objects and we manually add the timezone offset at rendering (we mainly do that for testing purposes). When the offset is added, calling format() on the moment object doesn't convert the datetime to the browser timezone because it's flagged as being UTC. The datepicker lib creates moment objects in the browser timezone. So comparing the ones it creates with the one given by Odoo is like comparing apples and oranges, and it gives wrong results when the datetimes differ by the exact timezone offset. So in this case, no 'datetime change' is triggered by the lib. We could fix this by wrapping moment objects into some kind of OdooDate class and stop manually adding the timezone offset, but this would involve a refactoring that can only be done in master. Instead, we prefered to patch the lib to ignore the comparison between UTC and non-UTC objects, as this is the safest way we find to fix this issue in stable version.
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, 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/master/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%