Skip to content

Commit

Permalink
[FIX] stock.picking: fix raw stock picking create which was broken by
Browse files Browse the repository at this point in the history
previous change
  • Loading branch information
gurneyalex authored and Stefan Rijnhart committed Jul 2, 2014
1 parent 14a0f91 commit e027cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def get_min_max_date(self, cr, uid, ids, field_name, arg, context=None):

def create(self, cr, user, vals, context=None):
if ('name' not in vals) or (vals.get('name')=='/'):
seq_obj_name = self._name
seq_obj_name = 'stock.picking.%s' % vals.get('type', 'internal')
vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)
new_id = super(stock_picking, self).create(cr, user, vals, context)
return new_id
Expand Down

0 comments on commit e027cea

Please sign in to comment.