From 2a69a9e23fd89257d4f5cf3577c153936fc63ffa Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 16 Mar 2011 15:18:46 +0530 Subject: [PATCH] [FIX] Account: cannot install Any Chart of Account lp bug: https://launchpad.net/bugs/735965 fixed bzr revid: mra@mra-laptop-20110316094846-h0o0srendhztgvve --- 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 264557ad82c..e4229f0124c 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -213,7 +213,7 @@ class account_installer(osv.osv_memory): }, context=context) if 'date_start' in res and 'date_stop' in res: - f_ids = fy_obj.search(cr, uid, [('date_start', '<=', res['date_start']), ('date_stop', '>=', res['date_stop']), ('company_id', '=', res['company_id'])], context=context) + f_ids = fy_obj.search(cr, uid, [('date_start', '<=', res['date_start']), ('date_stop', '>=', res['date_stop']), ('company_id', '=', res['company_id'][0])], context=context) if not f_ids: name = code = res['date_start'][:4] if int(name) != int(res['date_stop'][:4]): @@ -224,7 +224,7 @@ class account_installer(osv.osv_memory): 'code': code, 'date_start': res['date_start'], 'date_stop': res['date_stop'], - 'company_id': res['company_id'] + 'company_id': res['company_id'][0] } fiscal_id = fy_obj.create(cr, uid, vals, context=context) if res['period'] == 'month':