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.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Mei 22
|
2836 | ||
|
|
3
Nov 22
|
8942 | ||
|
|
0
Des 18
|
4104 | ||
|
|
3
Sep 23
|
21966 | ||
|
t-att-href url get error
Diselesaikan
|
|
2
Apr 23
|
9304 |
so you dont need to fetch from template .. do you mean that?