Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2360 Widoki

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:


                        
                        


Awatar
Odrzuć
Najlepsza odpowiedź

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>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 23
2321
0
wrz 22
2112
1
sie 22
2936
0
sie 22
2254
1
mar 22
1786