Odoo Help


can we hide create/edit button of form view? [Closed]

on 5/13/13, 10:40 AM 27,828 views

The Question has been closed for reason: duplicate question

Sudhir Arya (ERP Harbor Consulting Services)
on 05/24/2013 04:42:00

Can we hide create/edit button of form view using attrs?


Andreas Maertens

--Andreas Maertens--
| 6 6 7
Finsterwalde, Germany
--Andreas Maertens--

I develop odoo8.0 modules

Andreas Maertens
On 5/14/13, 4:09 AM

Yes you can!

You can remove the Create Button by adding attributes to your form in view.xml file:

<record ...>
    <form string="NAMEOFFORM" create="false" edit="false" version="7.0">

This way "Edit" and "Create" are removed from view for all Users.

In case you inherit from an existing view:

        <field name="arch" type="xml">
            <xpath expr='//form[@string="Product"]' position='attributes'>
                <attribute name="create">false</attribute>
        </field> ,

im doing like this but the save button does not disable!!!!!!!!!: <record id="view_statistic_cloud_form_methode" model="ir.ui.view"> <field name="name">My First Form view</field> <field name="model">cloud.statistic</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="My First Form View" version="7.0" create="false" > <group col="4"> <field name="meter"/> <field name="Max"/> <field name="Name"/> </group> </form> </field> </record>

Hachem Chraiti
on 4/17/14, 7:00 AM

Also, with something like this It's possible to hide the buttons from an specific user groups. In this example hide the buttom edit in the Invoice Form. The users of the groups have write privileges only for posting on the messages an communication history but not the fields of the invoices. account.invoice.form account.invoice <xpath expr="//form[@string='Invoice']" position="attributes"> false

OSSE - Oficina de Soluciones y Servicios Empresariales, jolevq
on 4/27/16, 10:20 PM

ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
| 6 5 8
Delhi NCR, India
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
On 5/13/13, 10:42 AM

Hi yes, you can do that ,

you can via access right for specific user


in view for all user

like this

   <form create="false" edit="false" >


tanks for your help

on 5/13/13, 10:55 AM

not working

on 4/12/14, 1:35 AM

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 5/24/13, 4:41 AM

This is a duplicate question. See original question: How to remove Save/Edit button

This could also help you: How to remove delete icon in one2many tree view


Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
Serpent Consulting Services Pvt. Ltd.
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 5/24/13, 3:15 AM

Hello Jamesbale,

You can use create="false" attribute in form tag. It will disable Create button from form view. You can use edit="false" to disable Edit button.

If you want to disable button from form view then use this:

<form create="false" edit="false">


how to hide the edit button according the status . I want to hide the edit button if status is 'done'

on 6/5/13, 3:06 AM

HI @Aneesh do you discover how to hide the button if depending on state and a groups(depending on permissions) ? Thanks

Versão Integral, Anabela Damas
on 7/1/13, 9:00 AM

This actually doesn't work in odoo 11, I don't know if the method to achieve this have changed through versions

Nicolás Mena
on 12/15/17, 11:05 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

4 follower(s)


Asked: 5/13/13, 10:40 AM
Seen: 27828 times
Last updated: 8/29/17, 8:58 AM