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

I want to get tracking information by using google analytic tracking code in OpenERP. I know the easiest way is just copy the tracking code into web module base.xml file (under class oe_view_manager_body). When I did that, the tracking function works well.

But I need to upgrade the source code timely, so I need to create a new module inherited web module and add that tracking code in to that new created module. So I would update web module a lot.

The problem is I can't get any signal if I put the tracking code into the new module. Could anyone help?

In my web_new, I have static/src/xml/custom.xml

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="ViewManager">
    <t t-jquery="div.oe_view_manager_body" t-operation="replace">
        <div class="oe_view_manager_body">
        <script>
            Tracking_Code
        </script>
            <t t-foreach="widget.views_src" t-as="view">
                <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
            </t>
        </div>
    </t>
</t>
</templates>
아바타
취소
관련 게시물 답글 화면 활동
1
8월 22
6347
0
4월 19
2638
2
3월 15
10096
1
12월 23
18467
1
3월 15
4384