Merge lp:~jfb-tempo-consulting/unifield-addons/uf-2497 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4633
Proposed branch: lp:~jfb-tempo-consulting/unifield-addons/uf-2497
Merge into: lp:unifield-addons
Diff against target: 12 lines (+1/-1)
1 file modified
stock/stock.py (+1/-1)
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-addons/uf-2497
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+237541@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'stock/stock.py'
--- stock/stock.py 2014-09-15 08:49:08 +0000
+++ stock/stock.py 2014-10-08 07:04:15 +0000
@@ -607,7 +607,7 @@
607 return res607 return res
608608
609 def create(self, cr, user, vals, context=None):609 def create(self, cr, user, vals, context=None):
610 if ('name' not in vals) or (vals.get('name')=='/'):610 if 'type' in vals and (('name' not in vals) or (vals.get('name')=='/')):
611 seq_obj_name = 'stock.picking.' + vals['type']611 seq_obj_name = 'stock.picking.' + vals['type']
612 vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)612 vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)
613 new_id = super(stock_picking, self).create(cr, user, vals, context)613 new_id = super(stock_picking, self).create(cr, user, vals, context)

Subscribers

People subscribed via source and target branches

to all changes: