跳至內容
選單
此問題已被標幟
3409 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 16
4898
1
7月 19
3197
0
7月 17
3346
3
6月 16
4452
0
8月 23
1691