From c02863060fc2c1aabd8efdecfd126daebfcfdae7 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 12 Sep 2011 16:49:25 +0200 Subject: [PATCH] [FIX] account, base_setup, hr_timesheet_sheet: improve server actions: remove pointless references to self, don't access ids if they're not needed bzr revid: xmo@openerp.com-20110912144925-xlpofswq106x3ds4 --- addons/account/account_view.xml | 8 ++++---- addons/base_setup/base_setup_views.xml | 2 +- addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a81a2811be5..2264508a7da 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2426,10 +2426,10 @@ -act_window_ids = self.pool.get('ir.actions.act_window').search(cr, uid,[('name', 'in', ('Accounting Chart Configuration', 'Generate Chart of Accounts from a Chart Template'))], context=context) -todo_ids = self.pool.get('ir.actions.todo').search(cr, uid, [('action_id', 'in', act_window_ids)], context=context) -self.pool.get('ir.actions.todo').write(cr, uid, todo_ids, {'state':'open'}, context=context) -action = self.pool.get('res.config').next(cr, uid, [], context) +act_window_ids = pool.get('ir.actions.act_window').search(cr, uid,[('name', 'in', ('Accounting Chart Configuration', 'Generate Chart of Accounts from a Chart Template'))], context=context) +todo_ids = pool.get('ir.actions.todo').search(cr, uid, [('action_id', 'in', act_window_ids)], context=context) +pool.get('ir.actions.todo').write(cr, uid, todo_ids, {'state':'open'}, context=context) +action = pool.get('res.config').next(cr, uid, [], context) New Company Financial Setting diff --git a/addons/base_setup/base_setup_views.xml b/addons/base_setup/base_setup_views.xml index 0e1efb40b32..cb00ac3eb5b 100644 --- a/addons/base_setup/base_setup_views.xml +++ b/addons/base_setup/base_setup_views.xml @@ -79,7 +79,7 @@ Start Configuration code - + diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml index be55c83e0fa..4fc5b2fb1b3 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml @@ -7,7 +7,7 @@ - +