Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
542 Vistas

Error de servidor de Odoo

RPC_ERROR

Odoo Server Error

Occured on djsolutionpty.odoo.com on model res.config.settings and id 8 on 2025-04-03 22:59:48 GMT

Traceback (most recent call last):
  File "/home/odoo/src/odoo/18.0/odoo/tools/cache.py", line 103, in lookup
    r = d[key]
        ~^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/tools/func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/tools/lru.py", line 33, in __getitem__
    a = self.d[obj]
        ~~~~~~^^^^^
KeyError: ('ir.model.data', <function IrModelData._xmlid_lookup at 0x7aa72246d080>, 'web.external_layout_bold')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/18.0/odoo/http.py", line 1962, in _transactioning
    return service_model.retrying(func, env=self.env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/service/model.py", line 156, in retrying
    result = func()
             ^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/http.py", line 1929, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/http.py", line 2177, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/addons/base/models/ir_http.py", line 333, in _dispatch
    result = endpoint(**request.params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/http.py", line 727, in route_wrapper
    result = endpoint(self, *args, **params_ok)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/addons/web/controllers/dataset.py", line 36, in call_kw
    return call_kw(request.env[model], method, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/api.py", line 533, in call_kw
    result = getattr(recs, name)(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/addons/web/models/models.py", line 1005, in onchange
    record._apply_onchange_methods(field_name, result)
  File "/home/odoo/src/odoo/18.0/odoo/models.py", line 7364, in _apply_onchange_methods
    res = method(self)
          ^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/addons/snailmail/models/res_config_settings.py", line 25, in _onchange_layout
    if self._is_layout_cover_required():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/addons/snailmail/models/res_config_settings.py", line 18, in _is_layout_cover_required
    self.env.ref(f'web.external_layout_{layout}')
  File "/home/odoo/src/odoo/18.0/odoo/api.py", line 658, in ref
    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/addons/base/models/ir_model.py", line 2246, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/tools/cache.py", line 110, in lookup
    value = d[key] = self.method(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/odoo/18.0/odoo/addons/base/models/ir_model.py", line 2239, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: web.external_layout_bold

The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
    Error: An error occured in the owl lifecycle (see this Error's "cause" property)
        at handleError (https://djsolutionpty.odoo.com/web/assets/1/f2f7d8e/web.assets_web.min.js:961:101)
        at App.handleError (https://djsolutionpty.odoo.com/web/assets/1/f2f7d8e/web.assets_web.min.js:1608:29)
        at ComponentNode.initiateRender (https://djsolutionpty.odoo.com/web/assets/1/f2f7d8e/web.assets_web.min.js:1053:19)

Caused by: RPC_ERROR: Odoo Server Error
    RPC_ERROR
        at makeErrorFromResponse (https://djsolutionpty.odoo.com/web/assets/1/f2f7d8e/web.assets_web.min.js:3141:163)
        at XMLHttpRequest.<anonymous> (https://djsolutionpty.odoo.com/web/assets/1/f2f7d8e/web.assets_web.min.js:3146:13)

Avatar
Descartar
Mejor respuesta

Hi,

To resolve the missing layout issue in Odoo 18, you can try upgrading the Web module directly from the Odoo interface. First, go to the Apps menu and make sure Developer Mode is activated. Once in Developer Mode, search for "Web" in the Apps list. Locate the Web module in the results, click on the Upgrade. This process will reload the Web module and restore any missing core assets, such as templates or layouts, including the ones related to report printing. After the upgrade, the missing layout issue should be resolved if it was due to a corrupted or incomplete installation of the Web module.


Hope it helps.

Avatar
Descartar