Skip to Content
Menu
This question has been flagged
1 Reply
2339 Views

How to inherit template report to change in some features of it

Avatar
Discard
Best Answer
  1. Inherit the template   (<template id="my_module.report_invoice_document_inherit" inherit_id="account.report_invoice_document"> )

  2. And use the Xpath (<xpath expr="//div[@class='row mt32 mb32']" position='inside'>)


like

        <template id="report_invoice_document_inherit" inherit_id="account.report_invoice_document">
<xpath expr="//div[@class='row mt32 mb32']" position='inside'>
<t t-set='o.carrier_tracking_ref'/>
<div class="col-xs-2" t-if="o.carrier_tracking_ref">
<strong>Carrier Tracking:</strong>
<p t-field="o.carrier_tracking_ref"/>
</div>
</xpath>
</template>


Hope it may help in your case.

Avatar
Discard
Author

Thanks it is work