diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index 576bda8c8ca..43400afa408 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -84,6 +84,7 @@ class account_journal(models.Model): # Below method is used to get data of bank and cash statemens def get_line_graph_datas(self): """Computes the data used to display the graph for bank and cash journals in the accounting dashboard""" + currency = self.currency_id or self.company_id.currency_id def build_graph_data(date, amount): #display date in locale format @@ -123,7 +124,7 @@ class account_journal(models.Model): date = val['date'] if date != today.strftime(DF): # make sure the last point in the graph is today data[:0] = [build_graph_data(date, amount)] - amount -= val['amount'] + amount = currency.round(amount - val['amount']) # make sure the graph starts 1 month ago if date.strftime(DF) != last_month.strftime(DF):