How to inherit template report to change in some features of it
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2339
Views
Inherit the template (<template id="my_module.report_invoice_document_inherit" inherit_id="account.report_invoice_document"> )
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.
Thanks it is work
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up