fix: Reload doc in patch

This commit is contained in:
deepeshgarg007 2019-07-28 10:30:32 +05:30
parent 724be6eca2
commit d9f3ba5fda

View File

@ -3,6 +3,9 @@ import frappe
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)