We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am unable to view payslips in PWA and can see them in desk. This is due to some permission error with Payroll Period DocType.
I have tried to manually grant this permission using permission manager, still it doesn't work.
Payroll
ERPNext: v15.21.2 (version-15)
Frappe Framework: v15.25.0 (version-15)
Frappe HR: v15.20.1 (version-15)
docker
19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "GET /hrms/dashboard/salary-slips HTTP/1.1" 200 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/hrms.api.get_current_employee_info HTTP/1.1" 200 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/hrms.api.get_current_user_info HTTP/1.1" 200 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/hrms.api.get_unread_notifications_count HTTP/1.1" 200 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/hrms.api.are_push_notifications_enabled HTTP/1.1" 200 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/frappe.client.get_list HTTP/1.1" 200 - 19:39:20 web.1 | Traceback (most recent call last): 19:39:20 web.1 | File "apps/frappe/frappe/app.py", line 110, in application 19:39:20 web.1 | response = frappe.api.handle(request) 19:39:20 web.1 | File "apps/frappe/frappe/api/__init__.py", line 49, in handle 19:39:20 web.1 | data = endpoint(**arguments) 19:39:20 web.1 | File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call 19:39:20 web.1 | return frappe.handler.handle() 19:39:20 web.1 | File "apps/frappe/frappe/handler.py", line 49, in handle 19:39:20 web.1 | data = execute_cmd(cmd) 19:39:20 web.1 | File "apps/frappe/frappe/handler.py", line 85, in execute_cmd 19:39:20 web.1 | return frappe.call(method, **frappe.form_dict) 19:39:20 web.1 | File "apps/frappe/frappe/__init__.py", line 1761, in call 19:39:20 web.1 | return fn(*args, **newargs) 19:39:20 web.1 | File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper 19:39:20 web.1 | return func(*args, **kwargs) 19:39:20 web.1 | File "apps/frappe/frappe/client.py", line 67, in get_list 19:39:20 web.1 | return frappe.get_list(**args) 19:39:20 web.1 | File "apps/frappe/frappe/__init__.py", line 2025, in get_list 19:39:20 web.1 | return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs) 19:39:20 web.1 | File "apps/frappe/frappe/model/db_query.py", line 114, in execute 19:39:20 web.1 | self.check_read_permission(self.doctype, parent_doctype=parent_doctype) 19:39:20 web.1 | File "apps/frappe/frappe/model/db_query.py", line 511, in check_read_permission 19:39:20 web.1 | self._set_permission_map(doctype, parent_doctype) 19:39:20 web.1 | File "apps/frappe/frappe/model/db_query.py", line 517, in _set_permission_map 19:39:20 web.1 | frappe.has_permission( 19:39:20 web.1 | File "apps/frappe/frappe/__init__.py", line 1086, in has_permission 19:39:20 web.1 | raise frappe.PermissionError 19:39:20 web.1 | frappe.exceptions.PermissionError 19:39:20 web.1 | 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/frappe.client.get_list HTTP/1.1" 403 - 19:39:20 web.1 | 192.168.65.1 - - [30/Apr/2024 19:39:20] "POST /api/method/hrms.api.get_unread_notifications_count HTTP/1.1" 20
The text was updated successfully, but these errors were encountered:
Can you share the permissions you have set for the employee role on the Payroll Period? Opened a PR to grant this permission in core
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Information about bug
I am unable to view payslips in PWA and can see them in desk. This is due to some permission error with Payroll Period DocType.
I have tried to manually grant this permission using permission manager, still it doesn't
work.
Module
Payroll
Version
ERPNext: v15.21.2 (version-15)
Frappe Framework: v15.25.0 (version-15)
Frappe HR: v15.20.1 (version-15)
Installation method
docker
Relevant log output / Stack trace / Full Error Message.
Code of Conduct
The text was updated successfully, but these errors were encountered: