This commit is contained in:
Rodia 2024-07-24 16:32:04 +00:00
parent 9881cdab7d
commit 0cc1276d63

View file

@ -135,8 +135,9 @@ def compute_report(data, domain, codes):
else:
res['records'][analytic_account.name]['balance'] = \
result_parcial
res['records'][analytic_account.name]['code'] = \
analytic_account.code
if analytic_account.name in res['records'].keys():
res['records'][analytic_account.name]['code'] = \
analytic_account.code
main_accounts = Account.search(['OR',
('code', 'in', codes),
])