commit | d9f3ba5fdacbac81391b4051152bace359523d83 | [log] [tgz] |
---|---|---|
author | deepeshgarg007 <deepeshgarg6@gmail.com> | Sun Jul 28 10:30:32 2019 +0530 |
committer | deepeshgarg007 <deepeshgarg6@gmail.com> | Mon Jul 29 12:14:49 2019 +0530 |
tree | 828a645f14de4915b54abf7f81a55e2bdc9e6e04 | |
parent | 724be6eca27f167f872f19d777934d84503fb2ee [diff] |
fix: Reload doc in patch
diff --git a/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py b/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py index 1796c53..b71ea66 100644 --- a/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py +++ b/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py
@@ -3,6 +3,9 @@ from frappe.custom.doctype.custom_field.custom_field import create_custom_field def execute(): + + frappe.reload_doc('accounts', 'doctype', 'accounting_dimension') + accounting_dimensions = frappe.db.sql("""select fieldname, label, document_type, disabled from `tabAccounting Dimension`""", as_dict=1)