Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

动作创建可能出错了,odoo server Error



  • 新手,按照书上创建教师菜单和动作,开始没有成功,再从设置-技术-动作,就出现Odoo Server Error了,然后无论删除从菜单里删除动作,重新创建动作(成功),或者删除动作(从窗口动作可以打开)、删除菜单,重启Odoo服务 ,一点动作,始终出现这个错误,怎么回事?Inked2020-02-29 09-55-43 的屏幕截图_LI.jpg
    错误:
    Odoo Server Error

    Traceback (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: )>"Inked2020-02-29 09-59-00 的屏幕截图_LI.jpg



  • @浩子不爱猫动作创建可能出错了,odoo server Error 中说:

    x_is_teacher

    x_is_teacher这个字段是你自定义的吗,找找跟这个相关的



  • 是我自定义的,不管它了,我在windows下搭了pycharm的平台。谢谢了。



  • 老兄,我跟你遇到的问题一样,你解决了吗?


Log in to reply