summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-05-14 13:52:57 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-05-15 13:20:25 +0000
commit5648bbada855928ea4f27a6585b24142593bb48a (patch)
treef2eaa273b28c1644d85ad3e94b042a404bcab67a /addons/web/static/tests/fields/basic_fields_tests.js
parent04dd6fbe50206b73e21604061cffc7f9ca483ed6 (diff)
[FIX] hr_holidays: request leave with leave type in hours
When a leave type is in hours, before this commit: - in the leaves request list the request duration is shown in days. - the name of the leave shown duration in days. - the rounding after the conversion from hours to days, generates some misunderstandings. If you have a day of 7.5 hours, and you take a leave of 2 hours, it would be round it to 0.25 days, and not to 0.27 days as it should be. This occurs because we round to the 1/16 of the day. Now: - in the leave request list, the request is shown either with days or hours depending on the leave type. - the name of the leave shown duration either with days or hours depending on the leave type. - the leaves are shown in the correct unit, there is not more misunderstandings occurring because of the rounding. related to commit : 5c33ebef5f5a018f37e9c8a5c57b914699f2887c and 2c366acbf01664c4f8d3230d402aa5f2fb46e078 opw-1974691 closes #29804 closes #33290 closes odoo/odoo#33369 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions