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>
Good !
Nice :D
This is awesome!!! - Thanks!
For qweb templates, it doesn't work.
it's basically for odoo website template, not for qweb template.
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
0
kvě 22
|
1921 | ||
|
3
lis 22
|
8060 | ||
|
0
pro 18
|
3292 | ||
|
3
zář 23
|
20615 | ||
t-att-href url get error
Vyřešeno
|
|
2
dub 23
|
8094 |
so you dont need to fetch from template .. do you mean that?