Event Permission Error

Hi All,
When I am assigning the Lead to a Person It shows Permission Error. Also i have checked the permission and sharing, But it shows the same message.

Please help me in this.

@Dhamu which version are you using?

Hi Thanks for your reply.
I am using ERPNext v5.1.4
and Framework v5.4.0

I think this bug is solved in version 6. You should upgrade.

Anand Doshi


Hi @anand Thanks for your reply.

Hi @anand How can if find the update steps to update my ERPNext to latest. otherwise steps to update my site to latest.

Take a backup:
bench —site all backup

Run bench update —upgrade

If you are not on master branch, you might need to run bench switch-to-master and then bench update —upgrade

Anand Doshi


Thanks @anand

Hi @anand,
I have updated the erpnext. while login into page it shows error…

Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 24, in render
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in render_page
hooks = frappe.get_hooks()
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in build
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in build_page
return getattr(frappe.local, “is_ajax”, False)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 29, in get_context
if args:
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 75, in build_context
if hasattr(module, prop):
File “/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/desk.py”, line 21, in get_context
boot = frappe.sessions.get()
File “/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py”, line 104, in get
# if not create it
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py”, line 115, in get_notification_info_for_boot
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py”, line 25, in get_notifications
“open_count_doctype”: get_notifications_for_doctypes(config, notification_count),
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py”, line 77, in get_notifications_for_doctypes
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 875, in get_list
def build_match_conditions(doctype, as_condition=True):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 50, in execute
return self.build_and_run()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 53, in build_and_run
args = self.prepare_args()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 68, in prepare_args
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 196, in build_conditions
match_conditions = self.build_match_conditions()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 307, in build_match_conditions
return frappe._dict({
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 354, in get_permission_query_conditions
conditions += (’ and ’ + doctype_conditions) if conditions else doctype_conditions
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 737, in get_attr
def get_file_json(path):
AttributeError: ‘module’ object has no attribute ‘get_permission_query_conditions_for_contact’

Please help me in solving this

Hi all,
While updating my site I got this error. Due to this I can’t able to Login. please help me in solving this.


Looks like your ERPNext app isn’t updated and that’s causing the problem

Hi @anand
Please steps to update ERPNext

from the frappe-bench folder, run bench update

Hi I have did it multiple times.

Can you share the results of the command: bench update


[root@nishta-erpnext frappe-bench]# bench update
Already up-to-date.
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch master → FETCH_HEAD
    Already up-to-date.
    Migrating site1.local
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Updating planning : [========================================]
    Wrote ./assets/js/print_format_v3.min.js - 18k
    Wrote ./assets/js/frappe-web.min.js - 275k
    Wrote ./assets/js/form.min.js - 100k
    Wrote ./assets/js/report.min.js - 155k
    Wrote ./assets/js/erpnext.min.js - 34k
    Wrote ./assets/css/list.min.css - 6k
    Wrote ./assets/js/erpnext-web.min.js - 1k
    Wrote ./assets/css/report.min.css - 7k
    Wrote ./assets/css/frappe-web.css - 53k
    Wrote ./assets/js/list.min.js - 63k
    Wrote ./assets/js/desk.min.js - 863k
    Wrote ./assets/css/form.min.css - 2k
    Wrote ./assets/js/editor.min.js - 26k
    Wrote ./assets/css/erpnext.css - 1k
    Wrote ./assets/css/desk.min.css - 255k
    Wrote ./assets/js/module.min.js - 5k
    Wrote ./assets/css/module.min.css - 1k
    unix:///var/run/supervisor/supervisor.sock no such file

Bench: Open source installer + admin for Frappe and ERPNext (https://erpnext.com)

Not Found - Donate to help make better free and open source tools

What’s the output of bench version?

[root@nishta-erpnext frappe-bench]# bench version
erpnext 6.10.2
frappe 6.9.3
[root@nishta-erpnext frappe-bench]#

Hi @anand is there any issue in this updation

Looks okay. I think this is due to your custom app. I am unable to reproduce this error.

You can also try: bench --site all clear-cache to make sure this isn’t a cache issue.