fix: Patch to make accounting dimension in orders
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index aef80bc..e73ea0e 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -338,7 +338,7 @@
erpnext.patches.v13_0.requeue_recoverable_reposts
erpnext.patches.v14_0.discount_accounting_separation
erpnext.patches.v14_0.delete_employee_transfer_property_doctype
-erpnext.patches.v13_0.create_accounting_dimensions_in_orders
+erpnext.patches.v13_0.create_accounting_dimensions_in_orders #1
erpnext.patches.v13_0.set_per_billed_in_return_delivery_note
execute:frappe.delete_doc("DocType", "Naming Series")
erpnext.patches.v13_0.set_payroll_entry_status
diff --git a/erpnext/patches/v13_0/create_accounting_dimensions_in_orders.py b/erpnext/patches/v13_0/create_accounting_dimensions_in_orders.py
index 7e6e820..8e6bce6 100644
--- a/erpnext/patches/v13_0/create_accounting_dimensions_in_orders.py
+++ b/erpnext/patches/v13_0/create_accounting_dimensions_in_orders.py
@@ -33,7 +33,10 @@
"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