Skip to Content
Menú
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
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 17
3288
2
de jul. 25
3574
1
de jul. 25
2725
0
de des. 24
1460
0
de nov. 24
1068