fix: reload user and role doctype

This commit is contained in:
prssanna 2021-02-02 11:25:10 +05:30
parent be634c99e1
commit f4362dbb26
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@ import frappe
from ..role import desk_properties
def execute():
frappe.reload_doctype('role')
for role in frappe.get_all('Role', ['name', 'desk_access']):
role_doc = frappe.get_doc('Role', role.name)
for key in desk_properties:

View file

@ -316,6 +316,7 @@ frappe.patches.v13_0.delete_event_producer_and_consumer_keys
frappe.patches.v13_0.web_template_set_module #2020-10-05
frappe.patches.v13_0.remove_custom_link
execute:frappe.delete_doc("DocType", "Footer Item")
execute:frappe.reload_doctype('user')
execute:frappe.reload_doctype('docperm')
frappe.patches.v13_0.replace_field_target_with_open_in_new_tab
frappe.core.doctype.role.patches.v13_set_default_desk_properties