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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
0
thg 5 22
|
4042 | |||
|
3
thg 11 22
|
10450 | |||
|
0
thg 12 18
|
5454 | |||
|
3
thg 9 23
|
23715 | |||
|
t-att-href url get error
Đã xử lý
|
2
thg 4 23
|
11374 |
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?