Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5772 Представления

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>

 

Аватар
Отменить
Лучший ответ

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>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июл. 24
2310
1
июл. 24
2173
1
июл. 24
2333
1
янв. 24
5515
2
июл. 23
4709