Comment 6 for bug 941901

Revision history for this message
ajay javiya (OpenERP) (aja-openerp) wrote :

Hello Numérigraphe,

I have check this issue, an ORM is design to work like that because when you apply attrs="{'invisible': [('field_xyz', '=', 'blah')]}"
and states="assigned" , ORM convert them to Modifier like {'invisible':[['field_xyz','=', 'blah'],['state','not in' ,['assigned']]] , so your button only invisible if both condition are satisfied , if you wish to make button invisible if either of one condition is satisfied then you can use like attrs="{'invisible':['|',('field_xyz','=', 'blah'),('state','not in' ,['assigned'])] }".

So i close this issue.

Thank You.