Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4898 Visualizzazioni

I created custom module ie. Complaint Type and create relation with Customer Support module. It's easy to view list of complaint types in Customer Support module on backend. But I don't know how can I view list of complaint types on QWeb?

Please help me!

Thanks in advance!

Avatar
Abbandona
Risposta migliore

You can use 't-foreach' for that purpose and iterate over any list of objects. For the syntax look at the Odoo Qweb documentation https://www.odoo.com/documentation/12.0/reference/qweb.html

For examples look, for instance, at the project module portal templates - https://github.com/odoo/odoo/blob/12.0/addons/project/views/project_portal_templates.xml


Avatar
Abbandona
Autore

In the project module portal template, there is <t t-foreach="grouped_tasks" t-as="tasks">. Now I don't know from where I get "grouped_tasks" variable. Suppose I have "Complaint Type" module, in that case what is name of variable which I can used in foreach?

Autore Risposta migliore

Thanks!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 23
2146
0
dic 22
2797
0
giu 21
2804
0
giu 20
5288
1
nov 19
2652