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.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
0
พ.ค. 22
|
3066 | |||
|
3
พ.ย. 22
|
9175 | |||
|
0
ธ.ค. 18
|
4325 | |||
|
3
ก.ย. 23
|
22278 | |||
|
t-att-href url get error
แก้ไขแล้ว
|
2
เม.ย. 23
|
9707 |
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?