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

Hello Everyone

                         When I open the settings of any module, let's say - sales module , then an error is shown in UI View.

    Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 653, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 695, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 697, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 682, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/models.py", line 1314, in load_views
    for [v_id, v_type] in views
  File "/opt/odoo/odoo/odoo/models.py", line 1314, in <dictcomp>
    for [v_id, v_type] in views
  File "/opt/odoo/odoo/odoo/addons/base/res/res_config.py", line 388, in fields_view_get
    toolbar=toolbar, submenu=submenu)
  File "/opt/odoo/odoo/odoo/models.py", line 1400, in fields_view_get
    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
  File "/opt/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1083, in postprocess_and_fields
    self.raise_view_error(message, view_id)
  File "/opt/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 533, in raise_view_error
    raise ValueError(message)
ValueError: Field `attachment_location` does not exist

Error context:
View `res.config.settings.view.form.inherit.sale`
[view_id: 633, xml_id: sale.res_config_settings_view_form, model: res.config.settings, parent_id: 153]


I did not find the field 'attachment_location' in odoo project directory.

Anyone please help to resolve the above issue.

Avatar
Discard
Best Answer

Hi,

Seems the error is coming from a custom module that you are using, check from which module the fied attachment_location is used. You can confirm this by creating a new database and installing default module without any custom code, the error will not be there.

Thanks

Avatar
Discard