Odoo Help

Welcome!

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.

0

How do I make a field or button on a form view appear only to a specific user group?

By
sam
on 9/17/14, 12:29 PM 393 views

Here is the situation guys

- I need to make a certain field or button action appear only to a specifuc user group. how do i make this happen?

0

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 9/17/14, 1:03 PM

Hello Sam,
There is an attribute in xml named "groups" in which you can give security group that will be accessible to those users that belongs to those groups.

Syntax:


<button name="xyz" string="xyz" type="workflow/object/action" groups="your_one_group,your_second_group"/>
<field name="xyz" groups="your_one_group,your_second_group"/>

Thanks a lot this helps

sam
on 9/19/14, 5:41 AM

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

1 follower(s)

Stats

Asked: 9/17/14, 12:29 PM
Seen: 393 times
Last updated: 3/16/15, 8:10 AM