[IMP] Small code cleaning.
bzr revid: tde@openerp.com-20120213152152-cp4c6akarz1k45u1
This commit is contained in:
parent
a22726ffe6
commit
35446546d3
|
@ -86,8 +86,7 @@ class account_installer(osv.osv_memory):
|
||||||
company_ids = self.pool.get('res.company').search(cr, uid, [], context=context)
|
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",))
|
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()]
|
configured_cmp = [r[0] for r in cr.fetchall()]
|
||||||
unconfigured_cmp = list(set(company_ids)-set(configured_cmp))
|
return list(set(company_ids)-set(configured_cmp))
|
||||||
return unconfigured_cmp
|
|
||||||
|
|
||||||
def check_unconfigured_cmp(self, cr, uid, context=None):
|
def check_unconfigured_cmp(self, cr, uid, context=None):
|
||||||
""" check if there are still unconfigured companies """
|
""" check if there are still unconfigured companies """
|
||||||
|
|
Loading…
Reference in New Issue