Skip to Content
Menu
This question has been flagged

In the employee's app I found out that there are 2 models hr.employee and hr.employee.public, but what is the difference between them? Why do both models exist?

Avatar
Discard
Author Best Answer

Hello! 

Due to the highly sensitive nature of employee information, which includes private data as well as delicate administrative details, not all users can access this information. Only specific users such as 'Employees/Officer' and 'Employees/Administrator' have permission to view it.

  Due to this, there are two models: hr.employee and hr.employee.public. But what is the difference?

The difference between the hr.employee and hr.employee.public models lies in the level of access and visibility they provide for employee information.

  1. hr.employee:
    • This model contains comprehensive and detailed information about employees, including sensitive private and administrative data.
    • Users with roles such as "Officer" and "Administrator" can access and view all information stored in this model.
    • It has access restrictions for users who do not have the appropriate permissions, thus safeguarding the confidentiality of employee data.
    • studio customizations are possible
    • Has a chatter
  2. hr.employee.public:
    • This model contains limited and non-sensitive information about employees.
    • It is designed to be accessible by a wider range of users, including those without administrative or supervisory roles.
    • Typically, it only contains basic and non-confidential details such as employee name, job title, and contact information.
    • It can be used for general reference purposes or to allow certain users to access basic employee information without exposing sensitive data.
    • studio customizations are not allowed
    • Has not a chatter

In summary, hr.employee is used to store detailed and sensitive information about employees, while hr.employee.public is used to provide limited access to non-sensitive and basic employee details for users who do not require confidential information.

Now what happens if I make a customization in the model hr.employee? Will this customization be visible in the model hr.employee.public? the answer is no, we will talk about how to do it in further forum posts! 

Stay tuned!


Avatar
Discard
Related Posts Replies Views Activity
1
May 24
1266
2
Apr 24
1068
1
Apr 24
1137
1
Mar 24
2042
1
Apr 25
2061