[IMP] stock: Remove origin and backorder when copy the picking

bzr revid: sbh@tinyerp.com-20100830064919-oks1ga3sslwf8x11
This commit is contained in:
sbh (Open ERP) 2010-08-30 12:19:19 +05:30
parent 5e868d7702
commit c8fe0020af
1 changed files with 2 additions and 0 deletions

View File

@ -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):