[MERGE] fix in accounting
bzr revid: fp@tinyerp.com-20121112085633-nvy7ai3672ds32v3
This commit is contained in:
commit
ef0cda43d3
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue