Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4025 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
mars 22
5894
1
mai 23
2148
3
juin 22
13756
0
févr. 22
2457
3
déc. 24
14328