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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
2256
Vistas
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>
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
ene 23
|
2159 | ||
|
0
sept 22
|
1986 | ||
|
1
ago 22
|
2858 | ||
|
0
ago 22
|
2141 | ||
|
1
mar 22
|
1729 |