This question has been flagged
2 Replies
2466 Views

I have following scenario


(a OR b OR c OR d) AND (e OR f)


I have built the following one:

<button name="close_ticket" type="object" string="Close Ticket" attrs="{'invisible': ['|','|','|','&amp;',('states','in',('waiting_approval','closed','draft')),('categ_id','not in',('support','payment')),('manager_appr','=', False),('payment_done','=', True),'|',('creating_user','=', False),('dep_user','=',False)]}" /> 


Its not working, as per me understandind, I am not applying AND at correct position. 

Avatar
Discard
Best Answer

Hello Mian Kamran,

Please try this,

<button name="close_ticket" type="object" string="Close Ticket" attrs="{'invisible': ['|','|','|','&amp;','|',('states','in',('waiting_approval','closed','draft')),('categ_id','not in',('support','payment')),('manager_appr','=', False),('payment_done','=', True),('creating_user','=', False),('dep_user','=',False)]}" /> 

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

Avatar
Discard