commit | 6a43f6718a9a1677aee417197fd8c33d7df6653f | [log] [tgz] |
---|---|---|
author | deepeshgarg007 <deepeshgarg6@gmail.com> | Sun Jul 28 10:30:32 2019 +0530 |
committer | deepeshgarg007 <deepeshgarg6@gmail.com> | Sun Jul 28 10:30:32 2019 +0530 |
tree | 5c7edb56bc62f909ea9344f8269f70acbc7f0f45 | |
parent | a65ad10c627ea84a657066d20c176a4fb903b0bf [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)