跳至内容
菜单
此问题已终结
1 回复
6280 查看

Hi there,

I am playing with email forms. I ve got some inputs that doesn't have to be filled in by customer so I made them hidden:

<input type="text" name="name" hidden="true" value="user_id.partner_id.name"/>
The question is how to insert field value as a form "value" (example above doesn't make a job). Thanks:)


形象
丢弃
最佳答案

Hello Piotr Cierkosz,

You need to change the attribute "value" to "t-att-value" in the input tag.
t-att-value is used for set the dynamic value in form.

Please find Example in Comment.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

形象
丢弃

Here is the example:

<input type="text" name="name" hidden="true" t-att-value="user_id.partner_id.name"/>

相关帖文 回复 查看 活动
4
8月 15
4180
0
3月 15
4141
1
3月 15
12728
2
9月 23
9794
2
3月 21
8853