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
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2014-09-15 08:49:08 +0000
3+++ stock/stock.py 2014-10-08 07:04:15 +0000
4@@ -607,7 +607,7 @@
5 return res
6
7 def create(self, cr, user, vals, context=None):
8- if ('name' not in vals) or (vals.get('name')=='/'):
9+ if 'type' in vals and (('name' not in vals) or (vals.get('name')=='/')):
10 seq_obj_name = 'stock.picking.' + vals['type']
11 vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)
12 new_id = super(stock_picking, self).create(cr, user, vals, context)

Subscribers

People subscribed via source and target branches

to all changes: