Skip to Content
Menu
This question has been flagged
2687 Views

Is there any way that i can add multiple input groups using loops in xml views as i need to render multiple input groups in the Form view. 


like this as shown in the Odoo documentation but it isn't running in the Form view .


Avatar
Discard
Author

<t t-foreach="[1, 2, 3, 4, 5]" t-as="item">
<p t-if="item_first">
Start
</p>
<p>
Index <t t-esc="item_index"/> and value <t t-field="item"/>
</p>
<p t-if="item_last">
End
</p>
</t>
Like this shown in different odoo documentations

Related Posts Replies Views Activity
5
Aug 24
42974
2
Apr 24
948
3
Jun 23
3129
2
Jun 23
2374
3
Mar 23
8622