diff --git a/erpnext/patches/v7_0/update_home_page.py b/erpnext/patches/v7_0/update_home_page.py index 97b4bafa46f..f526ce63156 100644 --- a/erpnext/patches/v7_0/update_home_page.py +++ b/erpnext/patches/v7_0/update_home_page.py @@ -2,13 +2,15 @@ import frappe import erpnext def execute(): + frappe.db.reload_doctype('Homepage') + website_settings = frappe.get_doc('Website Settings', 'Website Settings') if frappe.db.exists('Web Page', website_settings.home_page): header = frappe.db.get_value('Web Page', website_settings.home_page, 'header') if header and header.startswith("