Odoo Help


This community 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.


inherit Qweb template report odoo8

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

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


Prakash Sharma

--Prakash Sharma--
| 2 1 4
Delhi, India
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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