From abd682a1d150772c4ab8e9dfda7847305d12577a Mon Sep 17 00:00:00 2001 From: vrenaville Date: Thu, 11 Feb 2016 15:12:19 +0100 Subject: [PATCH] [FIX] check if the line have an amount currency instead of the linked account currency --- account_financial_report_webkit_xls/report/open_invoices_xls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_financial_report_webkit_xls/report/open_invoices_xls.py b/account_financial_report_webkit_xls/report/open_invoices_xls.py index 5180c658..d3119b52 100644 --- a/account_financial_report_webkit_xls/report/open_invoices_xls.py +++ b/account_financial_report_webkit_xls/report/open_invoices_xls.py @@ -355,7 +355,7 @@ class open_invoices_xls(report_xls): cumul_balance, style_line_decimal)] if _p.amount_currency(data): - if account.currency_id: + if line.get('amount_currency'): c_specs += [ ('curramount', 1, 0, 'number', line.get('amount_currency') or 0.0, None, style_line_decimal),