[IMP] stock: Remove origin and backorder when copy the picking
bzr revid: sbh@tinyerp.com-20100830064919-oks1ga3sslwf8x11
This commit is contained in:
parent
5e868d7702
commit
c8fe0020af
|
@ -596,6 +596,8 @@ class stock_picking(osv.osv):
|
|||
if ('name' not in default) or (picking_obj.name=='/'):
|
||||
seq_obj_name = 'stock.picking.' + picking_obj.type
|
||||
default['name'] = self.pool.get('ir.sequence').get(cr, uid, seq_obj_name)
|
||||
default['origin'] = ''
|
||||
default['backorder_id'] = False
|
||||
return super(stock_picking, self).copy(cr, uid, id, default, context)
|
||||
|
||||
def onchange_partner_in(self, cr, uid, context=None, partner_id=None):
|
||||
|
|
Loading…
Reference in New Issue