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

Hey can anyone please explain this change in odoo15 where we no longer need asset XML file and instead we use manifest to link our js and .scss files. How to identify between asset backend or frontend or common.

Some guidance would be nice

形象
丢弃
最佳答案

In the manifest.py you can specify if it is backend or frontend like below:

'assets': {
'web.assets_backend': [
'bus/static/src/**/*',
],
'web.assets_frontend': [
'bus/static/src/js/longpolling_bus.js',
'bus/static/src/js/crosstab_bus.js',
'bus/static/src/js/services/bus_service.js',
],
'web.qunit_suite_tests': [
'bus/static/tests/*.js',
],
},


形象
丢弃
相关帖文 回复 查看 活动
2
3月 22
5562
1
5月 23
1959
3
6月 22
13339
0
2月 22
2251
3
12月 24
13312