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 fbd9805d077c..f1d811472ddf 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 @@ def print_lines(self, row_position, account, line, _p, data, line_number): cumul_balance, style_line_decimal)] if _p.amount_currency(data): - if account.currency_id: + if line.get('amount_currency', 0.0) != 0.0: c_specs += [ ('curramount', 1, 0, 'number', line.get('amount_currency') or 0.0, None, @@ -435,7 +435,7 @@ def print_group_lines(self, row_position, account, line, _p, line_number): style_line_decimal), ('cumul', 1, 0, 'number', None, cumul_balance, style_line_decimal), ] - if account.currency_id: + if line.get('amount_currency', 0.0) != 0: c_specs += [ ('curramount', 1, 0, 'number', line.get('amount_currency') or 0.0, None, style_line_decimal),