Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2734 Widoki

Hi to all,

I'd like to have the managers of our employees approve leave requests. They are in the group "Leaves - Manager". But they don't see the button "approve". For debugging purposes, I gave the group the same access rights and dataset rules as the "Leaves - Officer" group has. "Leaves Officer"s see the button but "Leaves - Manager"s don't. Access rights are "read", "write", "create" and "delete" on hr.leave, dataset rules domain is "[('employee_id.parent_id.user_id', '=', user.id)]" and permissions are "read", "write", "create", "delete".

I looked  little further and as far as I understand, to have the button displayed, it is necessary that the user belongs to the group "hr_holidays.group_hr_holidays_manager" (in _check_approval_update(self, state) method of hr.leave). I suppose that "Leaves - Manager" does not belong to this group whereas "Leaves - Officer" does. Can somebody confirm this suggestion? How can I find out if this is the case? And what can I do so that my managers can approve leaves?

Best regards

Thomas


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 21
3690
3
paź 23
8854
1
wrz 23
3343
1
maj 23
2288
2
kwi 23
2840