Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5601 มุมมอง

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
2048
1
ก.ค. 24
1839
1
ก.ค. 24
2066
1
ม.ค. 24
4942
2
ก.ค. 23
4399