how to set name of multiple textbox in openerp usi

2019-04-17 07:57发布

Here is my code:

<tr t-foreach="keyword" t-as="item"><td><t t-esc="item_value"/></td><td><input type="text" name=""/></td></tr>  

So here, Textbox are generated dynamically.

Now I want to set textbox name to the value that is generated on

<t t-esc="item_value"/> 

1条回答
Luminary・发光体
2楼-- · 2019-04-17 08:45

To set the text box name to item_value you need to use the t-att attribute:

<input type="text" t-att-name="item_value"/>

Hope this helps!

查看更多
登录 后发表回答