[FIX] account: fixed error when closing fiscalyear (due to previous merge on osv_memory)
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 15 Mar 2011 14:53:57 +0000 (15:53 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 15 Mar 2011 14:53:57 +0000 (15:53 +0100)
bzr revid: qdp-launchpad@openerp.com-20110315145357-7h6ixa67ghjo33mc

addons/account/wizard/account_fiscalyear_close_state.py

index abf0547..68c758e 100644 (file)
@@ -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: