How can we make a field readonly based on group and state? i have
<field name="store_manager_id" options="{'no_open':True,'no_create':1,'no_create_edit':1}" required="True"
attrs="{'readonly': [ ('state', 'not in', ['draft'])]}"
i want to make it read only for user except when in 'draft' state but editable for manager in all states. How can it be done?