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:
commit
8f0acf30bf
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user