Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3870 Переглядів

Hello All

I am struggle  to  load  backend  assets  file  base  on  the  condition.Because  in  new  version  this  code  move  into  manifest  file  to  add  assets  like  this

'web.assets_backend': [
'/module_name/static/src/css/tazawal_font.css',
],   

But i need to load different font file base on the configuration.So  please  any  way  to  load  this  file  base  on  the  condition.I  have  apply  same  into  version  14  like  this










 

Please suggest any way to load like above into version 14.5

Thanks
Haresh

Аватар
Відмінити
Найкраща відповідь

Hi,

Try this in odoo 14,

<template id="assets_backend" name="account assets" inherit_id="web.assets_backend">


    <xpath expr="." position="inside">


<link rel="stylesheet" href="/module_name/static/src/css/tazawal_font.css"/>


    </xpath>


</template>


Regards

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 23
2346
Name inside the button Вирішено
1
лип. 23
1701
1
черв. 23
1624
1
черв. 23
2895
2
січ. 21
4238