Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3145 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 23
2948
0
sep. 22
2665
1
aug. 22
3661
0
aug. 22
2780
1
mar. 22
2311