Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6831 Переглядів

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
14901
0
жовт. 23
33
3
жовт. 23
789
1
жовт. 23
569
1
серп. 23
2549