[IMP] test currency code instead of amount_currency if amount_currency is equal to 0 by chance

pull/159/head
vrenaville 2016-02-11 15:41:53 +01:00
parent abd682a1d1
commit 3f88b96b5c
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ class open_invoices_xls(report_xls):
cumul_balance, style_line_decimal)]
if _p.amount_currency(data):
if line.get('amount_currency'):
if line.get('currency_code'):
c_specs += [
('curramount', 1, 0, 'number', line.get('amount_currency')
or 0.0, None, style_line_decimal),