diff options
| author | Mayur Maheshwari (OpenERP) <mma@tinyerp.com> | 2011-12-21 18:13:41 +0530 |
|---|---|---|
| committer | Mayur Maheshwari (OpenERP) <mma@tinyerp.com> | 2011-12-21 18:13:41 +0530 |
| commit | c8a392ebcc61122a8b768ee6c91a2dc203c32b4e (patch) | |
| tree | da443f904d6ecafa2ec8a835889746836d13bfdc | |
| parent | 82882c4b4d1eabb5e0b642a29f5cebe01f28541b (diff) | |
[IMP]stock:remove a {}
bzr revid: mma@tinyerp.com-20111221124341-2syj4zsayed234eo
| -rw-r--r-- | addons/stock/stock.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py index cca636167ee..a812db66c78 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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' |
