Skip to Content
Menu
This question has been flagged

I gave the employee group with the access rights to view only their payslips which are in the paid status.They can view that payslips but when they click print button to download it, it is displaying that "The requested URL not found". But the admin is able to view and print all the payslips. Is there any solution to solve this problem?
These are the record rules and access rights I gave to the staff group:


Own Payslips


[('employee_id.user_id', '=', user.id),('state', '=' , 'paid')]






id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_payroll_staff,hr.payslip.staff,hr_payroll.model_hr_payslip,custom_access_rights.group_staff_user,1,1,0,0
access_contract_staff,hr.contract.staff,hr_contract.model_hr_contract,custom_access_rights.group_staff_user,1,0,0,0
access_payslip_input_staff,hr.payslip.input.staff,hr_payroll.model_hr_payslip_input,custom_access_rights.group_staff_user,1,0,0,0
access_payslip_line_staff,hr.payslip.line.staff,hr_payroll.model_hr_payslip_line,custom_access_rights.group_staff_user,1,1,0,0
access_payslip_worked_days_staff,hr.payslip.worked.days.staff,hr_payroll.model_hr_payslip_worked_days,custom_access_rights.group_staff_user,1,0,0,0


Avatar
Discard
Related Posts Replies Views Activity
0
Jun 17
3396
2
Jul 25
3761
1
Jul 25
2943
0
Dec 24
1655
0
Nov 24
1144