[FIX] Sequences on picking

bzr revid: fp@tinyerp.com-20090816201651-v2xceke7pxn7fpqg
This commit is contained in:
Fabien Pinckaers 2009-08-16 22:16:51 +02:00
parent 02c5547562
commit c8212d8ac0
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class stock_picking(osv.osv):
return res
def create(self, cr, user, vals, context=None):
if 'name' not in vals:
if ('name' not in vals) or (vals.get('name')=='/'):
vals['name'] = self.pool.get('ir.sequence').get(cr, user, 'stock.picking')
return super(stock_picking, self).create(cr, user, vals, context)