c59d6d2329494705a5f9dd5ef6a1b0e2c43f8e38
Two fields number_of_days_display and number_of_hours_display are used to set a number_of_days field that stores the allocation day count of the allocation. Those two fields are interface fields. One or another is used depending on the leave type, depending on how the allocation is done: by hours or by days. This commit fixes a wrong computation of number of days by correctly setting a readonly attribute on unused fields as well as removing the inverse on the interface fields. Using onchange ensure the backend field is correctly computed. Moreover we could have two times the same tracking message as the inverse triggers another write and cache could consider the tracking two times.
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%