fix patches for v7 sites (#12043)

This commit is contained in:
Faris Ansari 2017-12-15 16:49:11 +05:30 committed by Nabin Hait
parent 53e47e6ba5
commit c7b92b73a6
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ def execute():
frappe.reload_doc("core", "doctype", "domain")
frappe.reload_doc("core", "doctype", "domain_settings")
frappe.reload_doc("core", "doctype", "has_domain")
frappe.reload_doc("core", "doctype", "role")
for domain in ("Distribution", "Manufacturing", "Retail", "Services", "Education"):
if not frappe.db.exists({"doctype": "Domain", "domain": domain}):

View File

@ -4,6 +4,9 @@ from frappe.email import sendmail_to_system_managers
def execute():
frappe.reload_doc('stock', 'doctype', 'item')
frappe.reload_doc("stock", "doctype", "customs_tariff_number")
frappe.reload_doc("hub_node", "doctype", "hub_category")
frappe.reload_doc("accounts", "doctype", "payment_terms_template")
frappe.reload_doc("accounts", "doctype", "payment_schedule")
company = frappe.get_all('Company', filters = {'country': 'India'})
if not company: