Odoo Help


inherit Qweb template report odoo8

ayman mohammed adam
on 5/31/16, 6:11 AM 475 views

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

Prakash Sharma
On 5/31/16, 7:28 AM
  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'>)


        <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"/>

Hope it may help in your case.

Thanks it is work

ayman mohammed adam
on 6/1/16, 8:21 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/31/16, 6:11 AM
Seen: 475 times
Last updated: 6/1/16, 8:21 AM