Fix Bug
This commit is contained in:
parent
9881cdab7d
commit
0cc1276d63
1 changed files with 3 additions and 2 deletions
|
@ -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),
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue