[FIX] closing fiscal year wizard: bugfix in sql query

bzr revid: christophe@tinyerp.com-20090108100856-y2r0b6pftoilvq10
This commit is contained in:
Christophe Simonis
2009-01-08 11:08:56 +01:00
parent 69e276222e
commit e96989b95e
@@ -163,7 +163,7 @@ def _data_save(self, cr, uid, data, context):
cr.execute('UPDATE account_period SET state = %s ' \
'WHERE fiscalyear_id = %s', ('done',fy_id))
cr.execute('UPDATE account_fiscalyear ' \
'SET state = %s, end_journal_period_id = %s' \
'SET state = %s, end_journal_period_id = %s ' \
'WHERE id = %s', ('done', start_jp and start_jp.id or None, fy_id))
return {}