--
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/16b18fc1-114f-442f-9853-c4a8c4006b4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Anand,
I am logged in as Administrator user (it has System Manager role). Should I be
checking if this Administrator user has read permission for Department DocType?
If so, it seems that the Administrator users (with System Manager role) doesn't
have any permission for Department Doctype. See below screen shot. The
migration script didn't seems to have correctly migrated over all the
permission for Department Doctype. This may be an issue with other doctype too?
Before migration from version 3:
http://imgur.com/jUKQnoZ
After migration in version 4:
--
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3ca25b98-b818-49f6-be79-3d51a4ab6bfb%40googlegroups.com.
--
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/dd671806-f820-4d68-9767-f9d1ec673a6d%40googlegroups.com.
Thanks Anand,
Sorry for too many questions.
1. Regarding your comment about "With new permission system, we have also removed certain redundant permissions like HR Manager will always have HR User role and consequently will be able to see Department record, etc.". If this is the case then it seems that the migration process hasn't take care of it. For example, few users have been only assigned "HR Manager" role in old version, but after migration, they still have "HR Manager" permission and also not "HR User" permission (automatically assigned by the migration process). So it seems that they are not going to see Department records as only "HR User" role has the permission over it. Does migration script suppose to be take care of it or this needs to be done manually as part of the migration?
2. Running the above delete sql query, deleted 1 row. After that I was able to assigned All roles except for Employee role to the Administrator user. I am getting this message http://imgur.com/lUv6Vy2 when I go to "Query Report - Permitted Documents For User" page.I am assuming that this is just asking me to enter appropriate detail before running the report?
3. I am getting this message http://imgur.com/3IJwKpo and below error in web console when I enter "Department" in DocType field and select a user on "Query Report - Permitted Documents For User" page. I am logged in as Administrator user. I am assuming that I am getting this message because the selected user may not have permission over Department doctype? One thing I don't understand is that, for the selected user there is an entry for Department DoctType under "User Permission Manager" so shouldn't he/she should have permission to view that particular Department.
"Traceback (innermost last):
File "/var/www/frappe-bench/apps/frappe/frappe/app.py", line 51, in application
response = frappe.handler.handle()
File "/var/www/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
execute_cmd(cmd)
File "/var/www/frappe-bench/apps/frappe/frappe/handler.py", line 84, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 524, in call
return fn(*args, **newargs)
File "/var/www/frappe-bench/apps/frappe/frappe/widgets/query_report.py", line 98, in run
columns, result = frappe.get_attr(method_name)(frappe._dict(filters))
File "/var/www/frappe-bench/apps/frappe/frappe/core/report/permitted_documents_for_user/permitted_documents_for_user.py", line 16, in execute
data = frappe.get_list(doctype, fields=fields, as_list=True, user=user)
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 593, in get_list
ignore_permissions=ignore_permissions, user=user)
File "/var/www/frappe-bench/apps/frappe/frappe/model/db_query.py", line 27, in execute
raise frappe.PermissionError, self.doctype
PermissionError: Department
"
The error indicates that the user you have selected in Permitted Documents for User does not have read access on Department.
--
Kind regards,
Mayur Patel
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2be07dbe-b5b6-4779-b396-635f5b15b74b%40googlegroups.com.