Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2055 Vistas

Hi all, 


I have a problem for updating Time Off.

It seems the cron job is not executing correctly :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/safe_eval.py", line 332, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "", line 1, in 
  File "/usr/lib/python3/dist-packages/odoo/addons/hr_holidays/models/hr_leave_allocation.py", line 469, in _update_accrual
    allocations._process_accrual_plans()
  File "/usr/lib/python3/dist-packages/odoo/addons/hr_holidays/models/hr_leave_allocation.py", line 421, in _process_accrual_plans
    nextcall = current_level._get_next_date(allocation.nextcall)
AttributeError: 'bool' object has no attribute '_get_next_date'

Accrual plan is configured as below :

  • Starts 1 day(s) after allocation start date
  • Adds 2.08 Days
  • Monthly on the 31 day of the month
  • Limit of 25.00 Days
  • At the end of the year, unused accruals will be lost

Does anybody have an idea of this issue ?

Kind regards

Florian



Avatar
Descartar
Mejor respuesta
  • Please Try this Step...

  • Verify that the employee's Time Off accrual plan is set up correctly. Check that the accrual frequency, accrual rate, and carryover settings are all set up correctly. Also, check that the accrual plan is assigned to the employee in question.

  • Check that the accrual plan's start date is set up correctly. The accrual plan's start date determines when the system starts calculating the employee's Time Off accruals. If the start date is incorrect, the system may not be updating the available Time Off balance correctly.

  • Make sure that the employee's Time Off requests are being approved and processed correctly. If the employee has requested Time Off but the request has not been approved or processed, the system will not deduct the Time Off from the available balance.

  • Check that there are no other issues with the Time Off module or your Odoo installation. For example, if you have recently updated Odoo, there may be compatibility issues with the Time Off module or other modules that are causing the issue.


Avatar
Descartar