Odoo Help

7
18
Sudhir Arya (ERP Harbor Consulting Services)
On 5/2/13, 3:36 AM

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">

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

<tree create="false">

You can use create=false to disable create option, write=false to disable edit option and delete=false to disable delete option.

Hello, Thank you Sudhir for your answer , i hope you know how to remove only the save button from a form. I should let the others and replace only this button (save). Thanks.

laribi
on 10/23/13, 9:52 AM

how to disable an button log in as an non-admin user

veena vasudevan
on 1/21/14, 5:39 AM

this is a solutions interesting but what happen when you only wnat to hide this button for one group users. how can do it this??

wilson zauma
on 3/13/14, 3:17 PM

Don't give them create access right. That's it.

Sudhir Arya (ERP Harbor Consulting Services)
on 3/13/14, 3:20 PM

Sorry Sudhir but you can show some example for to understand well, because i dont understand, thank for your time

wilson zauma
on 3/13/14, 4:36 PM

How about if you want to prevent editing only when an object has changed state...e.g not to edit a purchase order that has been approved by a project manager?

mmycool
on 4/6/14, 6:56 PM

How about if you want to prevent editing only when an object has changed state...e.g not to edit a purchase order that has been approved by a project manager?

mmycool
on 4/6/14, 6:56 PM
    <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:01 AM

I've tried this on Odoo 11 but didn't work, any hint if the way to do this have changed?

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

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 5/2/13, 3:18 AM
Seen: 16521 times
Last updated: 4/9/16, 11:26 AM