Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6750 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14626
0
ต.ค. 23
33
3
ต.ค. 23
788
1
ต.ค. 23
569
1
ส.ค. 23
2391