[MERGE] fix in accounting

bzr revid: fp@tinyerp.com-20121112085633-nvy7ai3672ds32v3
This commit is contained in:
Fabien Pinckaers 2012-11-12 09:56:33 +01:00
commit ef0cda43d3
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class account_move_line(osv.osv):
if type(period_id) == str: if type(period_id) == str:
ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)]) ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)])
context.update({ context.update({
'period_id': ids[0] 'period_id': ids and ids[0] or False
}) })
return context return context