Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3984 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 22
5865
1
mag 23
2132
3
giu 22
13718
0
feb 22
2432
3
dic 24
14221