This question has been flagged

I try to enter settings or settings and this error appears. I restarted the Odoo server and I still have this problem. They advised me to update the "pad" module, but it does not exist or I do not know where to find it.

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/base/models/res_config.py", line 395, in fields_view_get
    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 1096, 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 `pad_server` 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

Please do format your post properly and readable.

Best Answer

Hi,

There might be a field named pad_server in the views and which not be defined in the corresponding model.  To fix this issue what you can do is that to check the existence of such a field in the views. For that what you can do is that activate the developer mode and navigate to Settings -> Technical -> User Interface -> Views and in the search box in the top right corner, type the field name there, ie type pad_server and search inside the Architecture(before entering the enter button, move the selection to down such a way that inside the architecture the entered word get searched. If the search returns any record, open it and remove the field from the view.

Either you can remove the field from the view as described above, or define the field in the corresponding model.


Thanks


Avatar
Discard
Author

I have that code in res.config.settings.view.form.inherit.pad, where the pad_server stay. but when I erase the label and field appears other error.

<?xml version="1.0"?>

<div id="msg_module_pad" position="replace">

<div class="content-group" attrs="{'invisible': [('module_pad','=',False)]}">

<div class="mt16 row">

<label for="pad_server" string="Server" class="col-3 col-lg-3 o_light_label"/>

<field name="pad_server" placeholder="e.g. beta.primarypad.com"/>

<label for="pad_key" string="API Key" class="col-3 col-lg-3 o_light_label"/>

<field name="pad_key"/>

</div>

</div>

</div>

what should I do here?

In the corresponding record in the Views menu, there is a Boolean field named Active, untick the field and see whether you have the error while accessing the settings