Skip to content

Commit

Permalink
Merge pull request #71 from Alchez/fix-chart-of-accounts-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
vjFaLk authored Feb 14, 2023
2 parents aa959a4 + 4474b74 commit b2eff59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def return_parent(data, child):
"The parent account {0} does not exists in the uploaded template"
).format(frappe.bold(parent_account))
)
return [child] + parent_account_list
return [child] + (parent_account_list or [])

charts_map = defaultdict(dict)
paths = []
Expand Down

0 comments on commit b2eff59

Please sign in to comment.