跳至内容
菜单
此问题已终结
2 回复
3552 查看

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. 

形象
丢弃
最佳答案

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

   

形象
丢弃
相关帖文 回复 查看 活动
4
10月 17
10256
2
10月 21
9048
2
2月 19
6500
1
9月 18
106
0
9月 17
3994