跳至内容
菜单
此问题已终结
3 回复
13023 查看

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


形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

hello Wahyu Alif Aldika

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

形象
丢弃
最佳答案

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


形象
丢弃
相关帖文 回复 查看 活动
0
2月 22
2098
3
12月 24
12753
1
12月 24
5059
2
3月 22
5297
2
7月 25
1282