How can I hide the edit button and display only the create button if the state = 'cancel'
I tried using <form edit ='false'> and it works then......
I tried <form attrs="{'edit':[('state','in',('done','draft'))]}"> but don't have any effects, it will suppose to visible the edit when the state is done or draft
https://www.odoo.com/forum/help-1/question/how-to-hide-edit-button-in-purchase-order-for-specific-states-128804