From 04f14ac0ba390acc4640bd562df98a58519ac839 Mon Sep 17 00:00:00 2001 From: dufresnedavid Date: Mon, 16 Feb 2015 15:11:02 -0500 Subject: [PATCH] Fix programming error --- .../report/partner_aged_statement_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py b/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py index 7c9f9aa5..3d6eb68f 100644 --- a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py +++ b/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(