diff --git a/erpnext/patches/v13_0/create_accounting_dimensions_for_asset_repair.py b/erpnext/patches/v13_0/create_accounting_dimensions_for_asset_repair.py index 61a5c86386c9b92301859b89e583e27ff458571a..a1719fb41bbe36480169a71acb19e493b64e0912 100644 --- a/erpnext/patches/v13_0/create_accounting_dimensions_for_asset_repair.py +++ b/erpnext/patches/v13_0/create_accounting_dimensions_for_asset_repair.py @@ -13,8 +13,9 @@ def execute(): for d in accounting_dimensions: doctype = "Asset Repair" field = frappe.db.get_value("Custom Field", {"dt": doctype, "fieldname": d.fieldname}) + docfield = frappe.db.get_value("DocField", {"parent": doctype, "fieldname": d.fieldname}) - if field: + if field or docfield: continue df = {