Business Cases

0

How to change the odoo brand color in odoo 13 ?

Avatar
Shylok

Hi,

I want to change the Odoo default color in the custom module. Is there any easy way to do that?




Thanks

头像
丢弃
2 答案
2
Best Answer

Hi,

I think you can achieve by using following steps

=>Override the scss file addons --> web --> static --> src --> scss --> primary_variables.scss and change these file's color

$o-community-color: green; #choose the color here (i selected green for community version)
$o-enterprise-color: #875A7B;
$o-enterprise-primary-color: #00A09D;


then link the scss file path in xml template

        <template id="_assets_primary_variables" inherit_id="web._assets_primary_variables">
            <xpath expr="//link[last()]" position="after">
                <link rel="stylesheet" type="text/scss" href=" { scss file path }"/>
            </xpath>
        </template>

The output of the above changes will be as following


Hope it helps

1 备注
头像
丢弃
Avatar
Petr Cafourek
-

Could you explain how should i override scss file?

0
Avatar
Carlos Martínez
Best Answer

where  link the xml template ? in views ? or creating a new view? sorry but i dont find where have to do this 






头像
丢弃