Hi, I have a css file, but I can't make the changes apply, where the error may be. probe 2 different ways. thanks
Please appreciate your support.
I want to add in the header: <header style = "background-color: rgb (241, 77, 12);" >
(Customize Odoo header background color)
ref: odoo12
ref2:
I don't have a website installed because I don't need
file view_frontend.xml
<odoo>
<data>
<template id="mystyle" name="My style" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/modul_name/static/src/css/cssfile.css"/>
</xpath>
</template>
</data>
</odoo>
file css
.header {
background-color:rgb(124, 123, 173);
}
add view_frontend.xml in file __manifest__.py
****Another option that you also use without being able to solve it.
file view_frontend.xml
<odoo><data>
<template id="mystyle" name="My style" inherit_id="web.assets_frontend">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/modul_name/static/scss/cssfile.scss"/>
</xpath></template>
</data>
</odoo>
file scss (static\scss\
header {
background-color:rgb(124, 123, 173);
}
add view_frontend.xml in file __manifest__.py