From 2811c71fc7c81ceca8764d47bdc2b26128c473e6 Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Thu, 21 Apr 2011 14:30:39 +0530 Subject: [PATCH] [FIX] Stock : Fixed the problem suggested by Buildbot bzr revid: jvo@tinyerp.com-20110421090039-yt9zau6vvz833r92 --- addons/stock/wizard/stock_fill_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_fill_inventory.py b/addons/stock/wizard/stock_fill_inventory.py index 118f8f8a2ce..45eb6e67c8b 100644 --- a/addons/stock/wizard/stock_fill_inventory.py +++ b/addons/stock/wizard/stock_fill_inventory.py @@ -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):