mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user