[FIX]stock: fix a bug in get_quant_name when there is no code defined on product and no lot
bzr revid: csn@openerp.com-20130808132102-d0xx8hgqmd4l2ccb
This commit is contained in:
@@ -140,7 +140,8 @@ class stock_quant(osv.osv):
|
||||
"""
|
||||
res = {}
|
||||
for q in self.browse(cr, uid, ids, context=context):
|
||||
res[q.id] = q.product_id.code
|
||||
|
||||
res[q.id] = q.product_id.code or ''
|
||||
if q.lot_id:
|
||||
res[q.id] = q.lot_id.name
|
||||
res[q.id] += ': '+ str(q.qty) + q.product_id.uom_id.name
|
||||
|
||||
Reference in New Issue
Block a user