From 7e9e2ada32757a5db45d21b57b789826218f0498 Mon Sep 17 00:00:00 2001 From: Mitali Patel Date: Fri, 1 Dec 2017 15:32:29 +0530 Subject: [PATCH] [IMP] account: usability of accounting dashboard * [IMP] account: on 'Accounting Dashboard', 'Payments to do' under 'Vendor Bills' block should show total of amount to be(that is, 'To Pay' column total) paid and not the total of open invoices. * [IMP] account: minor improvements in accounting dashboard, - changed string from Invoices to validate/Invoices to Validate and Draft Bills to Bills to Validate - moved above strings slightly left side in Accounting dashboard so that the whole string displayed Was PR #18730. Was task 35125 --- .../models/account_journal_dashboard.py | 2 +- .../views/account_journal_dashboard_view.xml | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index bd2b41104be..2793996a963 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -215,7 +215,7 @@ class account_journal(models.Model): data as its first element, and the arguments dictionary to use to run it as its second. """ - return ("""SELECT state, amount_total, currency_id AS currency + return ("""SELECT state, residual_signed as amount_total, currency_id AS currency FROM account_invoice WHERE journal_id = %(journal_id)s AND state = 'open';""", {'journal_id':self.id}) diff --git a/addons/account/views/account_journal_dashboard_view.xml b/addons/account/views/account_journal_dashboard_view.xml index 0c910e12251..d7e4518ce6f 100644 --- a/addons/account/views/account_journal_dashboard_view.xml +++ b/addons/account/views/account_journal_dashboard_view.xml @@ -221,7 +221,7 @@ -
+
@@ -243,27 +243,27 @@
-