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?
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.
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
0
May 22
|
4042 | |||
|
3
Kas 22
|
10449 | |||
|
0
Ara 18
|
5451 | |||
|
3
Eyl 23
|
23713 | |||
|
t-att-href url get error
Çözüldü
|
2
Nis 23
|
11373 |
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?