[IMP] test currency code instead of amount_currency if amount_currency is equal to 0 by chance
parent
abd682a1d1
commit
3f88b96b5c
|
@ -355,7 +355,7 @@ class open_invoices_xls(report_xls):
|
||||||
cumul_balance, style_line_decimal)]
|
cumul_balance, style_line_decimal)]
|
||||||
|
|
||||||
if _p.amount_currency(data):
|
if _p.amount_currency(data):
|
||||||
if line.get('amount_currency'):
|
if line.get('currency_code'):
|
||||||
c_specs += [
|
c_specs += [
|
||||||
('curramount', 1, 0, 'number', line.get('amount_currency')
|
('curramount', 1, 0, 'number', line.get('amount_currency')
|
||||||
or 0.0, None, style_line_decimal),
|
or 0.0, None, style_line_decimal),
|
||||||
|
|
Loading…
Reference in New Issue