[FIX] account: fixed error when closing fiscalyear (due to previous merge on osv_memory)

bzr revid: qdp-launchpad@openerp.com-20110315145357-7h6ixa67ghjo33mc
This commit is contained in:
Quentin (OpenERP)
2011-03-15 15:53:57 +01:00
parent 8482c7eeed
commit 6c82be0d52
@@ -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:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: