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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
This question has been flagged
1
Cevapla
2310
Görünümler
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye OlRelated Posts | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Oca 23
|
2262 | ||
|
0
Eyl 22
|
2040 | ||
|
1
Ağu 22
|
2899 | ||
|
0
Ağu 22
|
2215 | ||
|
1
Mar 22
|
1772 |