[IMP]stock:remove a {}

bzr revid: mma@tinyerp.com-20111221124341-2syj4zsayed234eo
This commit is contained in:
Mayur Maheshwari (OpenERP)
2011-12-21 18:13:41 +05:30
parent 82882c4b4d
commit c8a392ebcc
+4 -4
View File
@@ -1365,12 +1365,12 @@ class stock_production_lot(osv.osv):
args = args or []
ids = []
if name:
ids = self.search(cr, uid, [('prefix', operator, name)] + args, limit=limit, context=context or {})
ids = self.search(cr, uid, [('prefix', operator, name)] + args, limit=limit, context=context)
if not ids:
ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit, context=context or {})
ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit, context=context)
else:
ids = self.search(cr, uid, args, limit=limit, context=context or {})
return self.name_get(cr, uid, ids, context or {})
ids = self.search(cr, uid, args, limit=limit, context=context)
return self.name_get(cr, uid, ids, context)
_name = 'stock.production.lot'
_description = 'Production lot'