From 4547ad4eda0ac390dcd582483cb67e16a6578e7b Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 23 Sep 2010 18:20:14 +0200 Subject: [PATCH] [FIX] account, generic chart of account installer: multi company rules bzr revid: qdp-launchpad@tinyerp.com-20100923162014-tnhm2p0eso8lub19 --- addons/account/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index 7e4c5c058a6..cc9a22c544d 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -125,7 +125,7 @@ class account_installer(osv.osv_memory): if context is None: context = {} - company_id = self.pool.get('res.users').browse(cr, uid, [uid], context)[0].company_id + company_id = self.browse(cr, uid, ids, context)[0].company_id seq_journal = True # Creating Account @@ -519,7 +519,7 @@ class account_installer(osv.osv_memory): obj_temp_tax_code = self.pool.get('account.tax.code.template') super(account_installer, self).execute(cr, uid, ids, context=context) record = self.browse(cr, uid, ids, context=context)[0] - company_id = self.pool.get('res.users').browse(cr, uid, [uid], context)[0].company_id + company_id = record.company_id for res in self.read(cr, uid, ids): if record.charts == 'configurable': fp = tools.file_open(opj('account','configurable_account_chart.xml'))