From 35446546d348033b8e89370c436d55276db73d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 13 Feb 2012 16:21:52 +0100 Subject: [PATCH] [IMP] Small code cleaning. bzr revid: tde@openerp.com-20120213152152-cp4c6akarz1k45u1 --- addons/account/installer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index ad48da00b0f..f0111d6645a 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -86,8 +86,7 @@ class account_installer(osv.osv_memory): company_ids = self.pool.get('res.company').search(cr, uid, [], context=context) cr.execute("SELECT company_id FROM account_account WHERE active = 't' AND account_account.parent_id IS NULL AND name != %s", ("Chart For Automated Tests",)) configured_cmp = [r[0] for r in cr.fetchall()] - unconfigured_cmp = list(set(company_ids)-set(configured_cmp)) - return unconfigured_cmp + return list(set(company_ids)-set(configured_cmp)) def check_unconfigured_cmp(self, cr, uid, context=None): """ check if there are still unconfigured companies """