I want to hide the edit button from the form in my module.But it should hide after changing the status to 'done'.I have three states for record (new,draft,done).If it is in 'draft' status I want to show the edit button . But if it is on 'done' state need to hide the edit button. I tried this
<form string="Consumption Result" edit="false" version="7.0">
But this cause always hide the edit button . How can I give condition here.
attrs="{'readonly': [('state','in',('done'))]}"
for fields – Pravitha V