تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
4709 أدوات العرض

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
ديسمبر 23
1489
1
سبتمبر 19
6748
0
ديسمبر 24
1415
1
مايو 23
10222
3
يوليو 17
7381