[已解决]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]
-
从名称看
perm_export
貌似是一个权限设置,Odoo中有perm_read
,perm_write
,perm_create
,perm_unlink
,估计是你装的哪个模块做了一下扩展,想对导入导出加权限控制。 -
@digitalsatori
正解,顺着你说的看啦下解决了。我一直在我现有的使用的模块中看,没发现,别的模块原来也是可能影响到的。是
base_export_manager
这个第三方模块中的东西,卸载了,就正常了。