fix: force reload custom field doctype (#27909)

custom_field.json has the same modified key in both versions but not the same content. This can happen again if something is backported, safe solution is to force reload.
This commit is contained in:
Ankush Menat 2021-10-11 22:14:28 +05:30 committed by GitHub
parent 4bbe434d43
commit ad444153cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import frappe
def execute():
frappe.reload_doc('custom', 'doctype', 'custom_field')
frappe.reload_doc('custom', 'doctype', 'custom_field', force=True)
company = frappe.get_all('Company', filters = {'country': 'India'})
if not company:
return