having an issue with dates in this case I'am trying to make some date calculations based on start and end dates but for some reason this errors keep giving issues
Traceback error is:
Error:
Odoo Server Error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: <class 'TypeError'>: "'datetime.datetime' object is not callable" while evaluating
'action=model.update_all_project_history()'
Code:
if not date_start() > role.date_start.date() and role[index + 1] != False:
date_end = role.date_start - timedelta(days=1)
I believe the if not
is might be what is causing this issue.