Skip to Content
Menu
This question has been flagged
2 Replies
2934 Views

Hi,

I can't remember what change have been made but log in as user ( not admin ), am no longer able to display leave types.

( on leaves menu configuration -> leave types & when submitting new leave request i get only no results to show ).

can anybody tell me how to setup the read permissions on leave types to make them available for a group of users (ex: User types / Internal User ).



Thanks in advance,

Avatar
Discard
Author Best Answer

"Seems your issue is that you are not able to see the leave types right ?"  exactly, 

I can see them as admin but not as an ordinary user, permissions were my first thought, So i went and checked them for model hr.leave.type. and find out that users actually have the read permissions. 

inspit of this i can't seem the leave types with users of  groups "User types / Internal User" or "Leaves / Officer".

Any possible other reasons for a such behavior ?


Avatar
Discard

Did you check the Record rules menu, Settings -> Technical -> Security -> Record rules and search for the rules of this model and check the domains given there for this user groups

Author

I've create new Recod rule with [ Object Leave Type / Rule Definition (Domain Filter)

[(1, '=', 1)] ] and assigned the groups in Group Name

It looks ok now,

Author

Unfortunately, I Couldn't up vote your anwsers.

Thanks Niyas,

Best Answer

Hi,

By default the menu Leaves --> Configuration --> Leave Types, is visible for the users with the Group Leaves/Officer. Seems your issue is that you are not able to see the leave types right ? First what you can do is that the login as admin(or super user) and see whether you can see those records in this logins. To become super user, activate the developer mode and click the debugger button near logged in users name and click the Become Super User button from it.


If you are able to see the leave type records in the above login, the issue is with the access rights or the record rules. The model name of the leave type is hr.leave.type  .

Then navigate to Settings -> Technical -> Security -> Access Rights(keep developer mode activated) and search for the records of the model hr.leave.type. ( While searching the records type the model name and rather than clicking enter, move mouse down to choose search the object). Then you will get the access rights created for the leave type model, from here check whether the Internal User Group have read access ticked, if not, grant the read access for it.  Once done this, login to the user profile and check whether the issue is resolved or not.


Thanks

Avatar
Discard