From 209d8f36f772e236890e5720e13d49581a0fb25d Mon Sep 17 00:00:00 2001 From: Zarrar Date: Thu, 7 Jun 2018 16:43:55 +0530 Subject: [PATCH] doctype was not reloaded to pickup changes (#14371) --- erpnext/patches/v11_0/refactor_erpnext_shopify.py | 1 + erpnext/patches/v11_0/rename_members_with_naming_series.py | 1 + 2 files changed, 2 insertions(+) diff --git a/erpnext/patches/v11_0/refactor_erpnext_shopify.py b/erpnext/patches/v11_0/refactor_erpnext_shopify.py index d344ae3f4b..d31afe5550 100644 --- a/erpnext/patches/v11_0/refactor_erpnext_shopify.py +++ b/erpnext/patches/v11_0/refactor_erpnext_shopify.py @@ -6,6 +6,7 @@ def execute(): frappe.reload_doc('erpnext_integrations', 'doctype', 'shopify_settings') frappe.reload_doc('erpnext_integrations', 'doctype', 'shopify_tax_account') frappe.reload_doc('erpnext_integrations', 'doctype', 'shopify_log') + frappe.reload_doc('erpnext_integrations', 'doctype', 'shopify_webhook_detail') if 'erpnext_shopify' in frappe.get_installed_apps(): remove_from_installed_apps('erpnext_shopify') diff --git a/erpnext/patches/v11_0/rename_members_with_naming_series.py b/erpnext/patches/v11_0/rename_members_with_naming_series.py index 9b85e68be5..7fa1b09e7b 100644 --- a/erpnext/patches/v11_0/rename_members_with_naming_series.py +++ b/erpnext/patches/v11_0/rename_members_with_naming_series.py @@ -1,6 +1,7 @@ import frappe def execute(): + frappe.reload_doc("non_profit", "doctype", "member") old_named_members = frappe.get_all("Member", filters = {"name": ("not like", "MEM-%")}) correctly_named_members = frappe.get_all("Member", filters = {"name": ("like", "MEM-%")}) current_index = len(correctly_named_members)