Browse Source

Fix programming error

pull/9/head
dufresnedavid 10 years ago
committed by Maxime Chambreuil
parent
commit
04f14ac0ba
  1. 4
      account_partner_aged_statement_webkit/report/partner_aged_statement_report.py

4
account_partner_aged_statement_webkit/report/partner_aged_statement_report.py

@ -174,7 +174,7 @@ class PartnerAgedTrialReport(aged_trial_report):
}
# If some of the invoices have different currency than the currency
# of the company, need to get the lines in these currency
# of the company, need to get the lines in these currencies
other_currencies = {}
for move_line in move_line_obj.browse(
self.cr, self.uid, line_dict.keys(), context=self.localcontext
@ -183,7 +183,7 @@ class PartnerAgedTrialReport(aged_trial_report):
if invoice and invoice.currency_id.id != currency.id:
if invoice.currency_id.id in other_currencies:
other_currencies[invoice.currency_id.id]['move_line_ids'].\
append(invoice.id)
append(move_line.id)
else:
# Get the journal with the correct currency
journal_ids = journal_obj.search(

Loading…
Cancel
Save