fix: force reload custom field doctype (#27909) (#27910)

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.

(cherry picked from commit ad444153cc)

Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
mergify[bot]
2021-10-12 20:38:09 +05:30
committed by GitHub
parent 8244980d79
commit 37bd0ecf87

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