I have a selection field that have 4 value:
'request_state': fields.selection([('buy','buy'),('available_in_stock','available in stock'),('lack_of_liquidity','lack of liquidity') ,('cancel','cancel') ,('disagreement_with_organization','disagreement with organization')], 'request state' )
I want show another field based on 'request_state' if it is buy OR available_in_stock
My xml code is
<field name="evaluation" attrs="{'invisible': ['&',('request_state','not in','buy'),('request_state','not in','available_in_stock')}" />
That work correct but if I use
<field name="evaluation" attrs="{'invisible': ['|',('request_state','not in','buy'),('request_state','not in','available_in_stock')}" />
That work and logic (buy and available_in_stock)
my problem is if I use OR it’s apply and logic and if I use AND it’s apply or logic
* I use openerp v6
Hope this one helps you: https://goo.gl/BCxCpk