Odoo Help

0

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

By
Karthik Arumugam
on 10/19/15, 10:50 AM 2,913 views

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

2
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">
....
</t>

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

You could extend this by using:

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

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.

ePillars Systems LLC, 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.

Register

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)

Stats

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