Guys
I want to show the objects like following without using python code.
<t t-foreach="code equivalent to request.env['your.model'].search([])" t-as="obj">
<t t-esc="obj.name"/>
</t>
Is it possible?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Guys
I want to show the objects like following without using python code.
<t t-foreach="code equivalent to request.env['your.model'].search([])" t-as="obj">
<t t-esc="obj.name"/>
</t>
Is it possible?
I solved. My question was answer.
<t t-foreach="request.env['your.model'].search([])" t-as="obj">
<t t-esc="obj.name"/>
</t>
For qweb templates, it doesn't work.
it's basically for odoo website template, not for qweb template.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
0
mai 22
|
3071 | |||
|
3
nov. 22
|
9182 | |||
|
0
déc. 18
|
4338 | |||
|
3
sept. 23
|
22288 | |||
|
t-att-href url get error
Résolu
|
2
avr. 23
|
9712 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
so you dont need to fetch from template .. do you mean that?