Odoo Help

3

4
4 Answers
15
Avatar

Andreas Maertens Germany

--Andreas Maertens--
1037
| 6 6 9
Finsterwalde, Germany
--Andreas Maertens--

I develop odoo8.0 modules

Andreas Maertens Germany
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">
        ...
    </form>
</record>

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

In case you inherit from an existing view:

    <record>
        ...
        <field name="arch" type="xml">
            <xpath expr='//form[@string="Product"]' position='attributes'>
                <attribute name="create">false</attribute>
            </xpath>
        </field> ,
    </record>
2 Comments
Hachem Chraiti Tunisia
4/17/14, 7:00 AM

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>

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

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

7
Avatar

ClueLogics Technologies Pvt. Ltd. India

--ClueLogics Technologies Pvt. Ltd.--
6223
| 7 5 10
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. India
5/13/13, 10:42 AM

Hi yes, you can do that ,

you can via access right for specific user

and

in view for all user

like this

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

Thanks
sandeep

3 Comments
jamesbale India
5/13/13, 10:55 AM

tanks for your help

muhammed India
4/12/14, 1:35 AM

not working

saiharitha varada India
5/4/19, 3:03 AM

yes not working

2
Avatar

Sudhir Arya (ERP Harbor Consulting Services) India

--Sudhir Arya (ERP Harbor Consulting Services)--
27218
| 8 9 10
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & CTO at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert having 7+ years of Experience in Odoo ERP.

• 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

• Good knowledge and experience in payment gateway integration with Odoo

• Active Memeber on Stackoverflow 

LinkedIn

Blog

Stackoverflow

ERP Harbor Consulting Services

Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services) India
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

2
Avatar

Serpent Consulting Services Pvt. Ltd. India

--Serpent Consulting Services Pvt. Ltd.--
Serpent Consulting Services Pvt. Ltd.
http://www.serpentcs.com
5103
| 7 6 10
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. is an Official Odoo Partner, working on Odoo ever since 2007, experience of 11+ years and witnessed the growth of Odoo.

We are a team of 80+ experts on various verticals. Our portfolio of products can be seen at http://www.serpentcs.com and http://www.serpentcs.in

Our Expertise and Services:

  • Odoo Support

  • Odoo Development

  • Odoo Training

  • Odoo Migration

  • Odoo Implementation

  • Odoo Consulting

Our 290+ Apps on Appstore : https://apps.odoo.com/apps/modules/browse?author=Serpent Consulting Services Pvt. Ltd.

Thanks.

Serpent Consulting Services Pvt. Ltd. India
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">

Thanks.

3 Comments
Aneesh India
6/5/13, 3:06 AM

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

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

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

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

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

Ask a Question
Writer
Tag
Keep Informed
4 follower(s)
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.

Register
Odoo Training Center

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

Test it now