Skip to content
Snippets Groups Projects
Commit d6c73c89 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] hr: Cannot acces profile without right


Current behavior:
When a user doesn't have any HR access right he cannot access his own profile

Steps to reproduce:
-Go to the demo user settings
-Remove all the right in the HR section
-Log into demo account
-Try to access My Profile

opw-2712593

closes odoo/odoo#81653

X-original-commit: ee932eab
Signed-off-by: default avatarEngels Robin (roen) <roen@odoo.com>
parent 202a5a07
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ class HrEmployeePrivate(models.Model):
string='Tags')
# misc
notes = fields.Text('Notes', groups="hr.group_hr_user")
color = fields.Integer('Color Index', default=0, groups="hr.group_hr_user")
color = fields.Integer('Color Index', default=0)
barcode = fields.Char(string="Badge ID", help="ID used for employee identification.", groups="hr.group_hr_user", copy=False)
pin = fields.Char(string="PIN", groups="hr.group_hr_user", copy=False,
help="PIN used to Check In/Out in Kiosk Mode (if enabled in Configuration).")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment