1

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.

the
  • 21,007
  • 11
  • 68
  • 101
  • Welcome to SO. Can you try to format your question to make it more readable - currently it is like a wall of text. Also, can you show what you have tried in terms of research and implementation so far, and what results that gave you. – mc110 Jul 04 '14 at 08:35

2 Answers2

2

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

the
  • 21,007
  • 11
  • 68
  • 101
OmaL
  • 5,037
  • 3
  • 31
  • 48
0

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

Community
  • 1
  • 1
Bazzinga...
  • 996
  • 2
  • 16
  • 26