[FIX] hr_payroll: handle timezones coherently in hr.benefit
This commit simplifies the way the timezones are handled in hr_benefit.
Creating a benefit now uses naive datetimes obtained by converting from
the employee's timezone into UTC and then stripping timezone
information.
closes odoo/odoo#31968
Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
Showing
- addons/hr_payroll/models/hr_benefit.py 8 additions, 8 deletionsaddons/hr_payroll/models/hr_benefit.py
- addons/hr_payroll/models/hr_employee.py 12 additions, 14 deletionsaddons/hr_payroll/models/hr_employee.py
- addons/hr_payroll/tests/test_benefit.py 53 additions, 75 deletionsaddons/hr_payroll/tests/test_benefit.py
Please register or sign in to comment