Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
13019 Vues

i tried to inherit  external id "web.assets_backend" but i got error external id not found like this

Traceback (most recent call last):
  File "/opt/odoo/sources/odoo/odoo/tools/convert.py", line 680, in _tag_root
    f(rec)
  File "/opt/odoo/sources/odoo/odoo/tools/convert.py", line 658, in _tag_template
    return self._tag_record(record)
  File "/opt/odoo/sources/odoo/odoo/tools/convert.py", line 567, in _tag_record
    f_val = self.id_get(f_ref)
  File "/opt/odoo/sources/odoo/odoo/tools/convert.py", line 663, in id_get
    res = self.model_id_get(id_str, raise_if_not_found)
  File "/opt/odoo/sources/odoo/odoo/tools/convert.py", line 669, in model_id_get
    return self.env['ir.model.data']._xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
  File "/opt/odoo/sources/odoo/odoo/addons/base/models/ir_model.py", line 1935, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)[1:3]
  File "", line 2, in _xmlid_lookup
  File "/opt/odoo/sources/odoo/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/opt/odoo/sources/odoo/odoo/addons/base/models/ir_model.py", line 1928, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: web.assets_backend
what is the solution for this? thank you


Avatar
Ignorer
Meilleure réponse

Hi,

In odoo15 the js and css are loaded in the module manifest file.

Please refer the official odoo documentation below:

https://www.odoo.com/documentation/15.0/developer/reference/frontend/assets.html

Thank you

Avatar
Ignorer
Meilleure réponse

hello Wahyu Alif Aldika

in the odoo15 js and css load in to manifest file of module

Avatar
Ignorer
Meilleure réponse

in case z_purchase_customize/static/js/hide_archive_action_buttons.js is your js file, then

try this in manifest file:


'assets': {
'web.assets_backend': [
'z_purchase_customize/static/js/hide_archive_action_buttons.js'
],
},


Avatar
Ignorer
Publications associées Réponses Vues Activité
0
févr. 22
2096
3
déc. 24
12739
1
déc. 24
5055
2
mars 22
5283
2
juil. 25
1281