Skip to Content
Menu
This question has been flagged
1 Reply
3623 Views

I had that error when I want to enter at products view. I copy the the traceback

Error:
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 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 745, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 718, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1376, in load_views
for [v_id, v_type] in views
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1376, in <dictcomp>
for [v_id, v_type] in views
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 410, in fields_view_get
res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1462, in fields_view_get
xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1094, in postprocess_and_fields
fields_def = self.postprocess(model, node, view_id, False, fields)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 919, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 919, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 919, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
[Previous line repeated 2 more times]
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 879, in postprocess
).postprocess_and_fields(field.comodel_name, f, view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1106, in postprocess_and_fields
self.raise_view_error(message, view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
raise ValueError(message)
ValueError: El campo `purchase_requisition_id` no existe

Contexto del error:
Vista `n/a`
[view_id: n/a, xml_id: n/a, model: n/a, parent_id: n/a]

Avatar
Discard
Best Answer

Hi,

The issue is that you have used a field in the views but the same field is not added in the corresponding model. So to fix this, either you can add the field to the corresponding model or remove the field from the views.

See this: How to Fix Field Does Not Exist Error Odoo


Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
May 23
17495
0
Jul 22
2686
0
Mar 24
4509
1
Jul 21
706
2
Oct 19
4653