[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user