Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
19262 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.






Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
2316
1
maj 25
2698
1
kwi 25
2759
1
lut 25
2050
0
paź 24
1757