summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-05-31 11:36:31 +0200
committerGitHub <noreply@github.com>2019-05-31 11:36:31 +0200
commit2d4b026625b162f4767d1b8152fd87fd34adf18c (patch)
tree6c235d36ea76f40c7066dabf953b5d7562ed68b7 /addons/web/static/src/js/views/basic/basic_controller.js
parentaae6b3c337bdab3d62dd517b416a0a7b080ed248 (diff)
parentf755e57fb8520c099f4712f0092c9b5975d88fc4 (diff)
[MERGE] hr*: Introduce the public employee profile
Purpose ======= 1/ Robustness & security: right now it is not easy to understand and do something clean in term of security (hr people vs employees, private info vs public). A HR officer doesn't know if he can write something on the chatter. Currently, a note will be visible for all the employees who have access to the employee form view for example. 2/ In term of business, it makes sense to let a hr manages payroll stuff (contract, employees private information, ... and other employee see public information (résumé and work information) Specification ============= Introduce 2 new models: - hr.employee.base (AbstractModel): This represents the basic skeleton model on which the shared fields and methods between the public and the private employees models. - hr.employee.public (_auto=False): This is a sql view based on the employee values, readable for an internal user (i.e. an employee). The model hr.employee is not readable anymore for an employee. There are now 3 ways to access the employee data: 1/ From the hr.employee views. HR officer access rights are required 2/ From the public profile. The public data for an employee are accessible but can't be modified. 3/ From the 'My Profile' menu. A classic employee can access its own data from there, and can modify them. TaskID: 1961151 closes odoo/odoo#33725 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions