bugfix
lp bug: https://launchpad.net/bugs/338329 fixed bzr revid: hda@hda-20090310132110-mywe7eh3su2kks4g
This commit is contained in:
@@ -757,6 +757,15 @@ stock_picking()
|
||||
|
||||
class stock_production_lot(osv.osv):
|
||||
|
||||
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
|
||||
if context is None:
|
||||
context = {}
|
||||
res = super(stock_production_lot, self).search(cr, uid, args, offset, limit, order, context=context, count=count)
|
||||
for k,v in self._get_stock(cr, uid, res, 'stock_available', None, context).items():
|
||||
if v==0.0:
|
||||
res.remove(k)
|
||||
return res
|
||||
|
||||
def name_get(self, cr, uid, ids, context={}):
|
||||
if not ids:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user