Browse Source

fix: Remove reloading statements for non existing dts

version-14
Gavin D'souza 4 years ago
parent
commit
5aeef088ad
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      frappe/patches/v11_0/create_contact_for_user.py
  2. +0
    -1
      frappe/patches/v11_0/rename_google_maps_doctype.py

+ 0
- 1
frappe/patches/v11_0/create_contact_for_user.py View File

@@ -8,7 +8,6 @@ def execute():
frappe.reload_doc('integrations', 'doctype', 'google_contacts')
frappe.reload_doc('contacts', 'doctype', 'contact')
frappe.reload_doc('core', 'doctype', 'dynamic_link')
frappe.reload_doc('communication', 'doctype', 'call_log')

contact_meta = frappe.get_meta("Contact")
if contact_meta.has_field("phone_nos") and contact_meta.has_field("email_ids"):


+ 0
- 1
frappe/patches/v11_0/rename_google_maps_doctype.py View File

@@ -5,4 +5,3 @@ from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType","Google Maps") and not frappe.db.exists("DocType","Google Maps Settings"):
rename_doc('DocType', 'Google Maps', 'Google Maps Settings')
frappe.reload_doc('integrations', 'doctype', 'google_maps_settings')

Loading…
Cancel
Save