Merge pull request #31648 from deepeshgarg007/dimension-patch-fix

fix: Patch to make accounting dimension in orders
This commit is contained in:
Deepesh Garg 2022-07-20 19:02:00 +05:30 committed by GitHub
commit 6d61525ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,10 @@ def execute():
"insert_after": insert_after_field,
}
create_custom_field(doctype, df, ignore_validate=True)
frappe.clear_cache(doctype=doctype)
try:
create_custom_field(doctype, df, ignore_validate=True)
frappe.clear_cache(doctype=doctype)
except Exception as e:
pass
count += 1