Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1218 Ansichten

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
Verwerfen
Autor

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>

Beste Antwort

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
Verwerfen