user3664205
user3664205

Reputation: 13

OpenERP security for a specific user

All my seniors, I have a security rule for Human Resources Employee and Contract. If user is manager role, user can see all data in contract including wage (salary). Otherwise, if user is assistance HR role, she can see all contract data except employee wage. Can I hide (invisible) fields in OpenERP with related security? Can I create a security rule like that? Need any access right mechanism.

Upvotes: 1

Views: 951

Answers (2)

OmaL
OmaL

Reputation: 5044

In the XML side of this field wage, you just need to add the manager group. For example:

<field name="wage" groups="base.group_hr_manager"/>

Now only the user having the HR manager permission can see this field. No others will be able to see this

Upvotes: 2

Bazzinga...
Bazzinga...

Reputation: 1004

Yes you can do it in OpenERP. Apps have already common access rights to use for security purpose. but even you can modify for particular users.

For that you have to use GROUPS. Groups is specific group of people can assign some specific validations. I have already answered regarding this. You can find it here

Upvotes: 0

Related Questions