콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
19087 화면

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

아바타
취소
베스트 답변

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.

관련 게시물 답글 화면 활동
1
7월 25
1937
1
5월 25
2027
1
4월 25
2441
1
2월 25
1727
0
10월 24
1477