Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2288 Представления

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:


                        
                        


Аватар
Отменить
Лучший ответ

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>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 23
2260
0
сент. 22
2034
1
авг. 22
2893
0
авг. 22
2215
1
мар. 22
1771