تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5750 أدوات العرض

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>

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 24
2285
1
يوليو 24
2149
1
يوليو 24
2316
1
يناير 24
5484
2
يوليو 23
4690