Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6399 Lượt xem

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:)


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

Here is the example:

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 8 15
4307
0
thg 3 15
4265
1
thg 3 15
12872
2
thg 9 23
9936
2
thg 3 21
8991