stock: fix bug of picking name

bzr revid: sbh@tinyerp.com-20100528093521-395poh7krpudcfuy
This commit is contained in:
sbh (Open ERP) 2010-05-28 15:05:21 +05:30
parent eb13ea9ea3
commit 13a79c0615
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ class stock_picking(osv.osv):
default = {}
default = default.copy()
picking_obj = self.browse(cr, uid, [id], context)[0]
if ('name' not in default) or (picking_obj.get('name')=='/'):
if ('name' not in default) or (picking_obj.name=='/'):
seq_obj_name = 'stock.picking.' + picking_obj.type
default['name'] = self.pool.get('ir.sequence').get(cr, uid, seq_obj_name)
return super(stock_picking, self).copy(cr, uid, id, default, context)