diff --git a/erpnext/patches/v7_1/update_portal_roles.py b/erpnext/patches/v7_1/update_portal_roles.py index 695f9980c0..506adb91fc 100644 --- a/erpnext/patches/v7_1/update_portal_roles.py +++ b/erpnext/patches/v7_1/update_portal_roles.py @@ -2,6 +2,7 @@ import frappe def execute(): frappe.reload_doctype('Role') + frappe.reload_doctype('User') for role_name in ('Customer', 'Supplier', 'Student'): if frappe.db.exists('Role', role_name): frappe.db.set_value('Role', role_name, 'desk_access', 0)