Commit 03a75ba3 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Xiaowu Zhang

erp5_accounting: get account from parent group

parent 3afd3bce
......@@ -22,10 +22,11 @@ if organisation:
# if organisation is an independant accounting section and contains bank accounts,
# only take into account those.
bank_account_list = []
if organisation_value == organisation_value.Organisation_getMappingRelatedOrganisation():
bank_account_list = organisation_value.searchFolder(**search_kw)
# else we lookup in organisations from parent groups.
else:
if not len(bank_account_list):
group_value = organisation_value.getGroupValue(None)
if group_value is not None:
uid_list = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment