Search Here

Remove or Hide Save Button from Odoo Form View

In this article you will learn how to hide or remove "Save" button from Odoo form view. Some time we want to create a form view to only show or display data not to save or edit it. So here we need to hide or remove the save button. 


remove_hide_save_button_from_odoo_form.xml


<record model="ir.ui.view" id="form_view_unique_id">
<field name="name">name.of.form.view</field>
<field name="model">model.name</field>
<field name="arch" type="xml">
<form string="Form Name" create="false" >
<sheet>
<group>
<!--Your fields goes here-->
</group>
</sheet>
</form>
</field>
</record>

Code Description


To hide "Save" button we only need to add (create="false") as we added in our code in line no 5. In the below screen shot you can see there is no "Save" button. 

 

Post a Comment

5 Comments