diff options
| author | helly kapatel <hpl@odoo.com> | 2019-09-27 07:28:13 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-18 12:18:53 +0000 |
| commit | bf99c212a055b29a2e60b40b0d0dd982e93ec91a (patch) | |
| tree | 6cb2b81efa28cedb69045c1db819999eab8c724d /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 69319bba3e9ba20d14f6b30bd555f6d2d7478f0a (diff) | |
[FIX] hr_holidays: display correct number of timeoff on approval view.
When timeoff is 1 day or 0.5 days then it was not going to
correctly display timeoff number on approval page due to momment.
For 1 day leave the date_to and date_from as equal so momment diff will
be 0 days and floating is off for diff so not display 0.5 for floating leave.
even we enable floating it will display the wrong floating based
on 24 hours instead of 8 working hours a day.
so get the number_of_days from db and display on leave same as department
leave summary.
Task-2071031
closes odoo/odoo#39032
X-original-commit: 6953620f507990010c593a0d35d67c81f5b27e47
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
