Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
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> </xpath> </field> </record>
This will hide edit button for those users who belongs to new group.
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
|Asked: 7/17/13, 7:55 AM|
|Seen: 2680 times|
|Last updated: 3/16/15, 8:10 AM|