[FIX] Stock : Fixed the problem suggested by Buildbot
bzr revid: jvo@tinyerp.com-20110421090039-yt9zau6vvz833r92
This commit is contained in:
parent
4d69993ce9
commit
2811c71fc7
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue