تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6746 أدوات العرض

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
ديسمبر 23
14618
0
أكتوبر 23
33
3
أكتوبر 23
788
1
أكتوبر 23
569
1
أغسطس 23
2386