[Fix] 'ascii' codec can't encode error in balance sheet report

This commit is contained in:
Rohit Waghchaure 2018-08-07 16:51:56 +05:30
parent 2cadb1e12e
commit 9a9974f5c3

View File

@ -217,7 +217,7 @@ def prepare_data(accounts, balance_must_be, period_list, company_currency):
"year_end_date": year_end_date,
"currency": company_currency,
"opening_balance": d.get("opening_balance", 0.0) * (1 if balance_must_be=="Debit" else -1),
"account_name": ('{} - {}'.format(_(d.account_number), _(d.account_name))
"account_name": ('%s - %s' %(_(d.account_number), _(d.account_name))
if d.account_number else _(d.account_name))
})
for period in period_list: