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.


What is the use of t-extend and t-jquery ?

Karthik Arumugam
on 10/19/15, 10:50 AM 1,184 views

Any body please explain me t-extend and t-jquery with a example in qweb reports

Shawn Varghese
On 10/19/15, 3:50 PM

t-extend is used to extend an existing template

You will see qweb templates in the base module like:

<t t-name="layout">

You can use <t t-extend="module_name.layout" > to extend these and insert new qweb elements.

<t t-jquery> is used to specify a postion.

For example,

<t t-name="layout">
<span class="some_class">Hello</span>

You could extend this by using:

<t t-jquery="span.some_class" t-operation="after">

t-jquery is usually used in conjuction with t-operation much like <xpath expr="" position="" /> 

Hope this helps.

If you browse through some modules, you should get the hang of it. Let me know if you need more help.

Shawn Varghese
on 10/19/15, 3:52 PM

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

3 follower(s)


Asked: 10/19/15, 10:50 AM
Seen: 1184 times
Last updated: 10/19/15, 3:50 PM