Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
12985 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

hello Wahyu Alif Aldika

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

Awatar
Odrzuć
Najlepsza odpowiedź

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'
],
},


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 22
2087
3
gru 24
12686
1
gru 24
5033
2
mar 22
5265
2
lip 25
1261