Skip to Content
Menu
This question has been flagged
1684 Views
Hi, Please help, im getting the following error on time off allocation approval.Please assist.odoo 13 community

Odoo Server Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1326, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1314, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/hr_holidays/models/hr_leave_allocation.py", line 464, in action_approve
    self.filtered(lambda hol: not hol.validation_type == 'both').action_validate()
  File "/usr/lib/python3/dist-packages/odoo/addons/hr_holidays/models/hr_leave_allocation.py", line 473, in action_validate
    holiday.write({'state': 'validate'})
  File "/usr/lib/python3/dist-packages/odoo/addons/hr_holidays/models/hr_leave_allocation.py", line 395, in write
    result = super(HolidaysAllocation, self).write(values)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 329, in write
    tracking = track_self.with_context(clean_context(self._context)).message_track(tracked_fields, initial_values)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 643, in message_track
    tracking[record.id] = record._message_track(tracked_fields, initial_values[record.id])
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 626, in _message_track
    tracking = self.env['mail.tracking.value'].create_tracking_values(initial_value, new_value, col_name, col_info, tracking_sequence)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_tracking_value.py", line 68, in create_tracking_values
    'new_value_char': new_value and dict(col_info['selection'])[new_value] or ''
KeyError: 'validate'
Avatar
Discard