Skip to Content
Menu
This question has been flagged
1 Atsakyti
3999 Rodiniai

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

Portretas
Atmesti
Best Answer

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 22
5876
1
geg. 23
2142
3
birž. 22
13734
0
vas. 22
2434
3
gruod. 24
14294