[IMP] When copying will check if not passing backorder_id in copy already (from sgo)

bzr revid: jco@openerp.com-20130829090431-65dypmn1tjgr8pbt
This commit is contained in:
Josse Colpaert
2013-08-29 11:04:31 +02:00
parent b2995fc6da
commit 7be335a976
+2 -1
View File
@@ -530,7 +530,8 @@ class stock_picking(osv.osv):
picking_obj = self.browse(cr, uid, id, context=context)
if ('name' not in default) or (picking_obj.name == '/'):
default['name'] = '/'
default['backorder_id'] = False
if not default.get('backorder_id'):
default['backorder_id'] = False
return super(stock_picking, self).copy(cr, uid, id, default, context)
def action_confirm(self, cr, uid, ids, context=None):