跳至内容
菜单
此问题已终结
3 回复
4634 查看

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
1457
1
9月 19
6690
0
12月 24
1383
1
5月 23
10157
3
7月 17
7264