doctype was not reloaded to pickup changes (#14371)

This commit is contained in:
Zarrar 2018-06-07 16:43:55 +05:30 committed by Nabin Hait
parent 50ae6b891b
commit 209d8f36f7
2 changed files with 2 additions and 0 deletions

View File

@ -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')

View File

@ -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)