Customize Odoo header background color -


how customize header background color of odoo 8.0? spent sometime no success. appreciate support.

best practice create configuration module , use module load css.

creating odoo module outside scope of stackoverflow answer, see https://www.odoo.com/documentation/8.0/howtos/backend.html

once have created configuration module, can use load css.

first, create css file /my_module/static/src/css/website.assets_backend.css , add back-end css file.

then create xml configuration file /my_modules/views/webassetsbackend.xml load css file. xml should following, noting path css file relative odoo module include path:

<?xml version="1.0" encoding="utf-8" ?> <openerp>   <data noupdate="1">     <template id="assets_backend" name="my module css assets" inherit_id="web.assets_backend">       <xpath expr="." position="inside">         <link rel="stylesheet" href="/my_module/static/src/css/website.assets_backend.css"/>       </xpath>     </template>   </data> </openerp> 

finally, edit data section of /my_module/__openerp__.py load xml configuration file, noting path xml file relative configuration module's root directory:

'data' : ['views/webassetsbackend.xml'], 

once module has been reloaded in odoo, should see css when viewing back-end of website.

you can use same technique update front-end css, target inherit_id="website.assets_frontend" instead of "web.assets_backend" , substitute "backend" "frontend".


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -