コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3987 ビュー

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
5867
1
5月 23
2134
3
6月 22
13718
0
2月 22
2433
3
12月 24
14227