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

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

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

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

[已解决]Error context: View `res.groups.form`



  • admin登录后点击groups就报错如下:

    Traceback (most recent call last):
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 640, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 677, in dispatch
        result = self._call_function(**self.params)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 333, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/service/model.py", line 101, in wrapper
        return f(dbname, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 326, in checked_call
        result = self.endpoint(*a, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 935, in __call__
        return self.method(*args, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/http.py", line 506, in response_wrap
        response = f(*args, **kw)
      File "/home/hui/odoo-dev/odoo10/odoo/addons/web/controllers/main.py", line 885, in call_kw
        return self._call_kw(model, method, args, kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/addons/web/controllers/main.py", line 877, in _call_kw
        return call_kw(request.env[model], method, args, kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/api.py", line 687, in call_kw
        return call_kw_model(method, model, args, kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/api.py", line 672, in call_kw_model
        result = method(recs, *args, **kwargs)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/models.py", line 1334, in load_views
        for [v_id, v_type] in views
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/models.py", line 1334, in <dictcomp>
        for [v_id, v_type] in views
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/models.py", line 1413, in fields_view_get
        xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 881, in postprocess_and_fields
        fields_def = self.postprocess(model, node, view_id, False, fields)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 786, in postprocess
        fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 786, in postprocess
        fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 786, in postprocess
        fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 786, in postprocess
        fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 749, in postprocess
        xarch, xfields = self.with_context(base_model_name=model).postprocess_and_fields(field.comodel_name, f, view_id)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 910, in postprocess_and_fields
        self.raise_view_error(message, view_id)
      File "/home/hui/odoo-dev/odoo10/odoo/odoo/addons/base/ir/ir_ui_view.py", line 468, in raise_view_error
        raise ValueError(message)
    ValueError: Field `perm_export` does not exist
    
    Error context:
    View `res.groups.form`
    [view_id: 150, xml_id: base.view_groups_form, model: res.groups, parent_id: n/a]
    


  • Field perm_export does not exist



  • @1140021222qq-com
    这个看到了,没清楚是哪个model里面的这个字段不存在,而且最后报错到res.groups.form了?



  • 补充下:不止在点Groups,在点Models时也会出现同样的错误的。


  • 管理员

    从名称看perm_export貌似是一个权限设置,Odoo中有perm_read, perm_write, perm_createperm_unlink,估计是你装的哪个模块做了一下扩展,想对导入导出加权限控制。



  • @digitalsatori
    正解,顺着你说的看啦下解决了。我一直在我现有的使用的模块中看,没发现,别的模块原来也是可能影响到的。

    base_export_manager这个第三方模块中的东西,卸载了,就正常了。