diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index d1e93f2fb291d6b28ca38e5434e9dce79f97d27b..79cdd3645eb1f850284d787c2777cc50501898e1 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -156,7 +156,7 @@ class account_journal(models.Model): account_sum = query_results[0].get('sum') #TODO need to check if all invoices are in the same currency than the journal!!!! elif self.type in ['sale', 'purchase']: - title = _('Bills you need to pay') if self.type == 'purchase' else _('Invoices owed to you') + title = _('Bills to pay') if self.type == 'purchase' else _('Invoices owed to you') # optimization to find total and sum of invoice that are in draft, open state query = """SELECT state, count(id) AS count, sum(amount_total) AS total FROM account_invoice WHERE journal_id = %s AND state NOT IN ('paid', 'cancel') GROUP BY state;""" self.env.cr.execute(query, (self.id,))