跳至內容
選單
此問題已被標幟
3 回覆
4587 瀏覽次數

Error​

Code

i want to hide field not Disable any help 

頭像
捨棄
最佳答案

Hi,

please try column_invisible instead of invisible

eg:  attrs="{'column_invisible': [('parent.scope','in',('out_invoice')]')]]}"

Thanks !!!  

Aswini @ iWesabe


頭像
捨棄
最佳答案

If you inherit parent view, you can use override attributes method.

For example:

<xpath expr="//field[@name='<name of field>']" position='attributes'>

<attribute name='attrs'>{'invisible': '1'}</attribute>

</xpath>

頭像
捨棄
最佳答案

hi 

you can use attrs like below:

attrs="{'invisible': [('state','not in','done')]}" or attrs="{'invisible': [('state','in',['done','cancelled'])]}"

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 23
1417
1
9月 19
6630
0
12月 24
1306
1
5月 23
10108
3
7月 17
7198