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

I am trying to add the form name above the address blocks on a delivery slip, but when i create an inherited document for the delivery report it places the text BELOW the addresses.    (Sorry I cannot post images).

Here is my code in the inherited view:

Packing Slip


아바타
취소
작성자

data inherit_id="stock.report_delivery_document">
xpath expr="//t[@t-set='information_block']" position="before">
div>
h1>
span><strong>Packing Slip</strong></span>
/h1>
/div>
/xpath>
/data>

베스트 답변

p>Hi,

Please try with the below code

<template id="inherit_report_deliveryslip"
inherit_id="stock.report_delivery_document">
        <xpath expr="//div[hasclass('page')]" position="before">

         // Add your content

        </xpath>

</template>


Hope it helps

아바타
취소