Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
4653 Lượt xem

Error​

Code

i want to hide field not Disable any help 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

hi 

you can use attrs like below:

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 23
1462
1
thg 9 19
6703
0
thg 12 24
1395
1
thg 5 23
10164
3
thg 7 17
7298