Merge pull request #15101 from rohitwaghchaure/ascii_issue_in_balance_sheet

[Fix] 'ascii' codec can't encode error in balance sheet report
This commit is contained in:
rohitwaghchaure 2018-08-07 16:53:21 +05:30 committed by GitHub
commit 8f0acf30bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: