Odoo Help


This community 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.


How to hide edit button in form issue for specific user??Really Need Help

on 7/17/13, 7:55 AM 2,266 views

I stuck with this problem in 3 days..please help me!! I want to hide edit button in form issue for any user. In this case , I want user only can create issue but can't edit any recorded issue. I have tried change in access control list and record rules but it's not working. I also have tried change access rights in models project.issue and unchecked write access for user. Then , user can't edit but also can't create. Any one can help me?thank you

Sreedath Namangalam
On 7/17/13, 9:02 AM


 <form string="your_string" edit="false">

Hope it will work.



thank you for the answer..I have tried that..but the edit button is removed also for everyone...Do you know how to hide that button only for user then admin and manager still able to edit that record?

on 7/17/13, 11:26 PM

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 7/27/13, 5:04 AM

Hello Alvin,

You can create your own group and then try given xml code.

You need to pass your group in groups_id.

 <record id="view_issue_form_remove_edit" model="ir.ui.view">
        <field name="name">view.issue.form.remove.edit</field>
        <field name="model">project.issue</field>
        <field name="inherit_id" ref="project_issue.project_issue_form_view"/>
        <field name="groups_id" eval="[(6, 0, [ref('your_group')])]"/>
        <field name="arch" type="xml">
            <xpath expr="//form" position="attributes">
                <attribute name="edit">false</attribute>

This will hide edit button for those users who belongs to new group.

Thank you

it will not work for tree view.....any other option is you know for tree view ?

on 7/31/13, 6:12 AM
On 7/22/13, 1:18 AM

any1 can help me?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

0 follower(s)


Asked: 7/17/13, 7:55 AM
Seen: 2266 times
Last updated: 3/16/15, 8:10 AM