fix: patch for migrating cost center allocations
This commit is contained in:
parent
528c71382f
commit
364856b7c5
@ -27,7 +27,7 @@ def create_new_cost_center_allocation_records(cc_allocations):
|
||||
cca.submit()
|
||||
|
||||
def get_existing_cost_center_allocations():
|
||||
if not frappe.get_meta("Cost Center").has_field("enable_distributed_cost_center"):
|
||||
if not frappe.db.exists("DocType", "Distributed Cost Center"):
|
||||
return
|
||||
|
||||
par = frappe.qb.DocType("Cost Center")
|
||||
|
Loading…
x
Reference in New Issue
Block a user