I have a web form it contains many input fields. I want to add an one2many field to it so that the user can select multiple lines and save them to DB. I don't know how to do it here is my form containing the other input fields but not one2many field:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
2289
Lượt xem
Hi,
You need to create a controller and pass the values to the rendered template. In the template, you can loop it using for-each.
Eg:
<t t-foreach="//passed value" t-as="value">
<t t-esc="value"/>
</t>
You need to create a controller and pass the values to the rendered template. In the template, you can loop it using for-each.
Eg:
<t t-foreach="//passed value" t-as="value">
<t t-esc="value"/>
</t>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 | |
---|---|---|---|---|
|
1
thg 1 23
|
2260 | ||
|
0
thg 9 22
|
2034 | ||
|
1
thg 8 22
|
2893 | ||
|
0
thg 8 22
|
2215 | ||
|
1
thg 3 22
|
1771 |