From dd3eea09c6332982e385795fdcf99aa80e6057b6 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 25 May 2015 21:21:29 +0200 Subject: [PATCH] [IMP] account: usability improvements --- addons/account/account_journal_dashboard.py | 6 +++--- addons/account/views/account_invoice_view.xml | 9 +++------ addons/hr_expense/hr_expense_view.xml | 17 ++++++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/addons/account/account_journal_dashboard.py b/addons/account/account_journal_dashboard.py index cf9068f1ed0..a1b5716ba85 100644 --- a/addons/account/account_journal_dashboard.py +++ b/addons/account/account_journal_dashboard.py @@ -184,9 +184,9 @@ class account_journal(models.Model): 'number_draft': number_draft, 'number_waiting': number_waiting, 'number_late': number_late, - 'sum_draft': formatLang(self.env, sum_draft, currency_obj=self.currency_id or self.company_id.currency_id), - 'sum_waiting': formatLang(self.env, sum_waiting, currency_obj=self.currency_id or self.company_id.currency_id), - 'sum_late': formatLang(self.env, sum_late, currency_obj=self.currency_id or self.company_id.currency_id), + 'sum_draft': formatLang(self.env, sum_draft or 0.0, currency_obj=self.currency_id or self.company_id.currency_id), + 'sum_waiting': formatLang(self.env, sum_waiting or 0.0, currency_obj=self.currency_id or self.company_id.currency_id), + 'sum_late': formatLang(self.env, sum_late or 0.0, currency_obj=self.currency_id or self.company_id.currency_id), 'currency_id': self.currency_id and self.currency_id.id or self.company_id.currency_id.id, 'show_import': True if self.type in ['bank', 'cash'] and len(ac_bnk_stmt) == 0 and last_balance == 0 else False, } diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 665a7260269..cfe85a454a9 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -242,17 +242,13 @@ - + - - @@ -328,6 +324,7 @@ + @@ -454,7 +451,7 @@ - + diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml index 19a8d541cec..cb0405cf582 100644 --- a/addons/hr_expense/hr_expense_view.xml +++ b/addons/hr_expense/hr_expense_view.xml @@ -84,13 +84,6 @@ - - - - - - @@ -137,6 +130,16 @@ + + + + + + + + + +