Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2308 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 23
2261
0
set 22
2040
1
ago 22
2897
0
ago 22
2215
1
mar 22
1772