Skip to content

Commit

Permalink
fix(patch): move desk prop patch to post model sync (#20361) (#20362)
Browse files Browse the repository at this point in the history
* fix(patch): Reload user_email to avoid failure

* fix: move patch to post sync

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>

[Skip ci]

(cherry picked from commit 0743225)

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
  • Loading branch information
mergify[bot] and surajshetty3416 committed Mar 16, 2023
1 parent eb14fe1 commit 661820a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@


def execute():
frappe.reload_doctype("user")
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:
Expand Down
2 changes: 1 addition & 1 deletion frappe/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ 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
frappe.patches.v13_0.add_switch_theme_to_navbar_settings
frappe.patches.v13_0.update_icons_in_customized_desk_pages
execute:frappe.db.set_default('desktop:home_page', 'space')
Expand Down Expand Up @@ -200,6 +199,7 @@ frappe.patches.v14_0.delete_payment_gateways
frappe.patches.v14_0.event_streaming_deprecation_warning

[post_model_sync]
frappe.core.doctype.role.patches.v13_set_default_desk_properties
frappe.patches.v14_0.drop_data_import_legacy
frappe.patches.v14_0.copy_mail_data #08.03.21
frappe.patches.v14_0.update_github_endpoints #08-11-2021
Expand Down

0 comments on commit 661820a

Please sign in to comment.