动作创建可能出错了,odoo server Error
-
新手,按照书上创建教师菜单和动作,开始没有成功,再从设置-技术-动作,就出现Odoo Server Error了,然后无论删除从菜单里删除动作,重新创建动作(成功),或者删除动作(从窗口动作可以打开)、删除菜单,重启Odoo服务 ,一点动作,始终出现这个错误,怎么回事?
错误:
Odoo Server ErrorTraceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, 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 941, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 904, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in do_search_read
offset=offset or 0, limit=limit or False, order=sort or False)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 4586, in search_read
records = self.search(domain or [], offset=offset, limit=limit, order=order)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1570, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 4118, in _search
query = self._where_calc(args)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3910, in _where_calc
e = expression.expression(domain, self)
File "/usr/lib/python3/dist-packages/odoo/osv/expression.py", line 673, in init
self.parse()
File "/usr/lib/python3/dist-packages/odoo/osv/expression.py", line 854, in parse
raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'x_is_teacher' in leaf "<osv.ExtendedLeaf: ('x_is_teacher', '=', True) on ir_actions (ctx: )>" -
老兄,我跟你遇到的问题一样,你解决了吗?