Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2303 Weergaven

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:


                        
                        


Avatar
Annuleer
Beste antwoord

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>

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 23
2261
0
sep. 22
2038
1
aug. 22
2896
0
aug. 22
2215
1
mrt. 22
1772