问题描述
在这种情况下遇到日期问题我试图根据开始日期和结束日期进行一些日期计算,但由于某种原因,此错误不断出现问题
回溯错误是:
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()'
代码:
if not date_start() > role.date_start.date() and role[index + 1] != False:
date_end = role.date_start - timedelta(days=1)
我认为 if not
可能是导致此问题的原因。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)