patch: reloads newly created docs in v12 (#18148)

This commit is contained in:
Mangesh-Khairnar 2019-07-04 12:50:16 +05:30 committed by Nabin Hait
parent 100af0a635
commit 29734dae18

View File

@ -3,6 +3,8 @@ import frappe
from erpnext.regional.india.setup import make_custom_fields
def execute():
frappe.reload_doc("accounts", "doctype", "tax_category")
frappe.reload_doc("stock", "doctype", "item_manufacturer")
company = frappe.get_all('Company', filters = {'country': 'India'})
if not company:
return