I have create contracts and everything is setup for payroll. It works fine, but when an employee register vacation it failed with this error:
Error:
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 307, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 339, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 332, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 927, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 512, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 924, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 916, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/odoo-server/odoo/models.py", line 4996, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "/odoo/odoo-server/odoo/models.py", line 4892, in _onchange_eval
method_res = method(self)
File "/odoo/odoo-server/addons/hr_payroll/models/hr_payslip.py", line 461, in onchange_employee
worked_days_line_ids = self.get_worked_day_lines(contracts, date_from, date_to)
File "/odoo/odoo-server/addons/hr_payroll/models/hr_payslip.py", line 178, in get_worked_day_lines
for day_intervals in day_leave_intervals:
File "/odoo/odoo-server/addons/resource/models/resource.py", line 463, in _iter_leave_intervals
resource_id)
File "/odoo/odoo-server/addons/resource/models/resource.py", line 393, in _get_day_leave_intervals
end_datetime=datetime.datetime.combine(day_date, end_time))
File "/odoo/odoo-server/addons/resource/models/resource.py", line 304, in _get_leave_intervals
leave_date_to = to_tz(fields.Datetime.from_string(leave.date_to), leave.tz)
File "/odoo/odoo-server/addons/resource/models/resource.py", line 37, in to_tz
tz = pytz.timezone(tz_name)
File "/usr/local/lib/python3.5/dist-packages/pytz/__init__.py", line 173, in timezone
if zone.upper() == 'UTC':
AttributeError: 'bool' object has no attribute 'upper'
Can you help me?
any body???