Skip to Content
Menu
This question has been flagged
1 Reply
5599 Views

The normal module to update CCS does not work as it's changing the entire web backend css instead, not just im_chat_printx.css changes. Any ideas what is wrong below? 

__openerp__.py

'depends' : ['im_chat'],
'init_xml' : [],
'demo_xml' : [],
'update_xml' : [],
'data' : ['views/im_chat_printx.xml'],
'installable': True,
'active': True,
'description': """
New Live Chat CSS.
    """,
}

im_chat_printx.xml

<openerp>
    <data>
        <template id="assets_backend" name="im_chat_printx assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/im_chat_printx/static/src/css/im_chat_printx.css"/>
            </xpath>
        </template>
    </data>
</openerp>

 

Avatar
Discard
Best Answer

it should be frontend instead of backend

 

<template id="assets_frontend_customized" inherit_id="website.assets_frontend" name="Assets Frontend Customized">
            <xpath expr='.' position="inside">                    
                <link rel="stylesheet" href="/test/static/src/css/customize.css"/>
            </xpath>
        </template>

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 24
2045
1
Jul 24
1836
1
Jul 24
2064
1
Jan 24
4938
2
Jul 23
4394