콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5604 화면

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
7월 24
2049
1
7월 24
1839
1
7월 24
2067
1
1월 24
4946
2
7월 23
4399