diff options
| author | Jinal Patel <jip@odoo.com> | 2020-06-12 12:26:12 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-07-20 14:45:44 +0000 |
| commit | 950c7d415d4d2d13fc00af35b433c02e13e2948a (patch) | |
| tree | 8372a114b0a79ccb08f722fd542cad031d02c0c8 /addons/mail/static/src | |
| parent | a9a64ffc0c5074f95e7efb1cf645dfdac5689245 (diff) | |
[FIX] hr_holidays: Fix the automatic change of duration in allocation
In the commit, https://github.com/odoo/odoo/commit/3bd345597fa932abdaf780f72bacf331690f549b#diff-4b74c5cd47565e7fbe2a526d12a577c4L300
which convert the onchange to compute, there was onchage on
number_of_hours_display and on number_of_days_display which
going to write the value to number_of_days. but it was missed
in above commit so value was no upated in number_of_days.
So due to that when we try to allocate the duration in terms of days
or hours in time off allocarion and save it, it will be automatically
takes the default value.
So in this commit, Fix the issue and update the number of days based on
number_of_days_display and number_of_hours_display also set the default
value for number of days/hours when change allocation type or holiday
status type.
closes odoo/odoo#54715
Taskid: 2275933
Closes: #53014
X-original-commit: 5fe6ae94bb61cc27f8f3326408d749680e4f79e1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mail/static/src')
0 files changed, 0 insertions, 0 deletions
