projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
013f149
)
[IMP]solve problem don't save or confirm or confirm & receive manually creating incom...
author
Jalpesh Patel (OpenERP)
<pja@tinyerp.com>
Thu, 25 Oct 2012 11:35:43 +0000
(17:05 +0530)
committer
Jalpesh Patel (OpenERP)
<pja@tinyerp.com>
Thu, 25 Oct 2012 11:35:43 +0000
(17:05 +0530)
bzr revid: pja@tinyerp.com-
20121025113543
-a4cxxwcntj4e2ij8
addons/stock/stock.py
patch
|
blob
|
history
diff --git
a/addons/stock/stock.py
b/addons/stock/stock.py
index
729e097
..
eb667b5
100644
(file)
--- a/
addons/stock/stock.py
+++ b/
addons/stock/stock.py
@@
-618,7
+618,7
@@
class stock_picking(osv.osv):
def create(self, cr, user, vals, context=None):
if ('name' not in vals) or (vals.get('name')=='/'):
- seq_obj_name = 'stock.picking.' + vals['type']
+ seq_obj_name = 'stock.picking.' + vals.get('type','in')
vals['name'] = self.pool.get('ir.sequence').get(cr, user, seq_obj_name)
new_id = super(stock_picking, self).create(cr, user, vals, context)
if new_id: