How to hide edit/create button on form by conditions?
问题 I'm a new Odoo developer and I need to hide the edit button when my form is entering a custom state, I need this because of a security problem. This code in XML does not work when I try to give an attribute to the form. <record model="ir.ui.view" id="pesan_form_view"> <field name="name">pesan_service_form</field> <field name="model">pesan.service</field> <field name="arch" type="xml"> <form string="Booking Service" attrs="{edit:'false':[('state','in','baru')]}"> <!-- structure of form --> <