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

Hi,

I am trying to display an image in the xml. I have file path and name as individual fields but I want to use them as the src attribute of the image tag. I have used the following code to display image but it only works when we create a new record and not after saving it.

<field name="file" filename="file_name" attrs="{'readonly':[('state', '!=', 'new')]}" />

<field name="file_name" invisible="1"/>


So, is there a way to point an attribute to another field? Or how can I make the above code work?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 16
4893
1
thg 7 19
3182
0
thg 7 17
3341
3
thg 6 16
4445
0
thg 8 23
1689