[FIX] Stock : Fixed the problem suggested by Buildbot

bzr revid: jvo@tinyerp.com-20110421090039-yt9zau6vvz833r92
This commit is contained in:
Jay Vora (OpenERP) 2011-04-21 14:30:39 +05:30
parent 4d69993ce9
commit 2811c71fc7
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class stock_fill_inventory(osv.osv_memory):
context = {}
super(stock_fill_inventory, self).view_init(cr, uid, fields_list, context=context)
if len(context['active_ids']) > 1:
if len(context.get('active_ids',[])) > 1:
raise osv.except_osv(_('Error!'), _('You cannot perform this operation on more than one Stock Inventories.'))
if context.get('active_id', False):