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

What is the difference between xpath and t-jquery? They seem to do the same thing - modify existing module files (add or replace tags). 
Which one should I use and when?

아바타
취소
베스트 답변

Odoo has two different templates rendering engine know as Qweb
one for server-side rendering and other for client-side rendering 


both used the similar syntax (t-if, t-foreah..) except template inheritance
server-side user xpath and client-side user jquery to for inherit template

아바타
취소
베스트 답변

You may probably get a better answer but from my limit experience, "t-query" or qweb is predominantly used in customising reports as it is HTML based https://www.odoo.com/documentation/12.0/reference/qweb.html 

Where as xpath is used in the forms and views https://www.odoo.com/documentation/12.0/reference/views.html

아바타
취소
관련 게시물 답글 화면 활동
2
12월 23
14766
0
10월 23
33
3
10월 23
788
1
10월 23
569
1
8월 23
2489