İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1230 Görünümler

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


Avatar
Vazgeç
Üretici

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>

En İyi Yanıt

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

Avatar
Vazgeç