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

Dear community,

I want to modify the header and footer of web.external_layout_standard in my custom module. I've tried several tutorials but always the same error:

Can not separate file to save as attachment because the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname.

E.g.:

 <template id="my_layout_standard" inherit_id="web.external_layout_standard">

            <xpath expr="." position="replace">

                    <div t-attf-class="article" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">

                    <div class="pt-5"> 

                        <t t-call="web.address_layout"/>

                    </div>

                    <t t-raw="0"/>

                </div>

            </xpath>

</template>


How can i modify via XML module installation the header and footer of web.external_layout_standard.


It is possible via user interface but i would like to modify it via update/installation of the module.


Thank you in advance,

best reagards,

Markus


아바타
취소
관련 게시물 답글 화면 활동
0
2월 22
4625
0
2월 21
2030
0
5월 25
11
2
1월 25
2344
1
1월 25
575