How to load css based on group odoo 13

落花浮王杯 提交于 2020-06-28 05:32:09

问题


I want to load a different stylesheet based on user group (or if possible user selected company company)

This is my code

<odoo>
    <template id="id" name="your name" inherit_id="website.assets_backend">
            <xpath expr="." position="inside">
                <attribute name="attrs">{'invisible': 1}</attribute>               

                <link href="/n_hesaby_subscription_manager/static/src/css/style.css" rel="stylesheet" type="text/css"/>
            </xpath>
    </template>
</odoo>

Thank you for your help

can the file be scss

来源:https://stackoverflow.com/questions/62548218/how-to-load-css-based-on-group-odoo-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!