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-27 09:32:24 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-05-27 09:32:24 +0000
commitf4bb6e5d3425f61cbb8b54646a9df4b171888257 (patch)
tree28bed28b8c4a269337245fb290976cde19f8f092 /addons/web/static/tests/fields/basic_fields_tests.js
parentb24e0441b9ae3859dbec17535e5c964b40fa1d46 (diff)
[FIX] hr_holidays: allocation with leave type in hours and with a different mode than 'By Employee'
When an allocation have as leave type hours, and have the mode different from 'By Employee', the stored duration (in days) is calculated dividing the filed number of hours by 8 (number of hours per days). During the validation, an allocation is created for each employee that match the mode chosen. In these allocations, before this commit, the number of hours displayed is calculated by multiplying the stored duration (in days) with the average number of hours of the employee. The problem is that in may cases the average number of hours of the employee is different from 8, and the display number of hours is not correct. Now, the number of hours is calculated with 8 when the allocation is created from another allocation. opw-1972133 closes odoo/odoo#33675 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions