diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index aa999f344ef..cc05092688b 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -91,15 +91,18 @@ - - - - - - - - - + + + + + + + + + + + + diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index d46a24fc277..36d62e32e63 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -376,13 +376,11 @@ class account_analytic_account(osv.osv): def _is_overdue_quantity(self, cr, uid, ids, fieldnames, args, context=None): result = dict.fromkeys(ids, 0) - for record in self.browse(cr, uid, ids, context=context): - if record.quantity == 0.0 and record.quantity_max == 0.0: - result[record.id] = 0 - else: + if record.quantity_max > 0.0: result[record.id] = int(record.quantity >= record.quantity_max) - + else: + result[record.id] = 0 return result def _get_analytic_account(self, cr, uid, ids, context=None): diff --git a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml b/addons/account_analytic_analysis/account_analytic_analysis_menu.xml index 34840814154..9abc2796992 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_menu.xml @@ -1,7 +1,6 @@ - - + All Uninvoiced Entries @@ -11,16 +10,7 @@ [('invoice_id','=',False)] - - - - Overpassed Accounts - account.analytic.account - form - tree,form,graph - [('date','<=',time.strftime('%Y-%m-%d')),('state','=','open')] - - + account.analytic.account.search @@ -29,11 +19,10 @@ - - + - - Overdue Accounts + Analytic Accounts/Contracts account.analytic.account form tree,form,graph @@ -80,7 +69,7 @@ You will find here the contracts to be renewed because the deadline is passed or the working hours are higher than the allocated hours. OpenERP automatically sets these analytic accounts to the pending state, in order to raise a warning during the timesheets recording. Salesmen should review all pending accounts and reopen or close the according to the negotiation with the customer. - + diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml index a82f3b1b5c9..c59717e8ad4 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml @@ -8,6 +8,27 @@ Remove information on Account data => because they move on analysis sheet create a page with invoicing informations --> + + account.analytic.account.invoice.stat.form.inherit + account.analytic.account + form + + + + + + +