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

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'])]}"

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 23
1460
1
ก.ย. 19
6699
0
ธ.ค. 24
1390
1
พ.ค. 23
10160
3
ก.ค. 17
7278