跳至內容
選單
此問題已被標幟
1 回覆
2295 瀏覽次數

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>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 23
2260
0
9月 22
2035
1
8月 22
2894
0
8月 22
2215
1
3月 22
1771