Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3423 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 16
4903
1
ก.ค. 19
3199
0
ก.ค. 17
3347
3
มิ.ย. 16
4471
0
ส.ค. 23
1709