Odoo Help


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

Karthik Arumugam
on 10/19/15, 10:50 AM 2,248 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

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

3 follower(s)


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