-
- Downloads
[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: 6953620f Signed-off-by:Yannick Tivisse (yti) <yti@odoo.com>
Please register or sign in to comment