I have custom field , i want to make it readonly in edit mode if my custom one2many filled with some record .
here's my xml code
<field name="branch_id" attrs="{'readonly': ['|',('penerimaan_line','=',True),('state','!=','draft')]}" required="1"/>
it didn't work ..