From 6c82be0d524cacb79e02ef81dc9f9b44bc4aafc0 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 15 Mar 2011 15:53:57 +0100 Subject: [PATCH] [FIX] account: fixed error when closing fiscalyear (due to previous merge on osv_memory) bzr revid: qdp-launchpad@openerp.com-20110315145357-7h6ixa67ghjo33mc --- addons/account/wizard/account_fiscalyear_close_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/account_fiscalyear_close_state.py b/addons/account/wizard/account_fiscalyear_close_state.py index abf054746ce..68c758eb495 100644 --- a/addons/account/wizard/account_fiscalyear_close_state.py +++ b/addons/account/wizard/account_fiscalyear_close_state.py @@ -41,7 +41,7 @@ class account_fiscalyear_close_state(osv.osv_memory): """ for data in self.read(cr, uid, ids, context=context): - fy_id = data['fy_id'] + fy_id = data['fy_id'][0] cr.execute('UPDATE account_journal_period ' \ 'SET state = %s ' \ @@ -61,4 +61,4 @@ class account_fiscalyear_close_state(osv.osv_memory): account_fiscalyear_close_state() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: