[FIX] stock: avoid traceback when owner on picking and transfer more.

If you create a picking, with an owner, for qty x, and confirm it.
Next transfer x+1, it will raise a traceback 'cannot adapt res.partner'

Now, we pass the id, and not the browse record.

This commit closes #12978
This commit is contained in:
Ondřej Kuzník 2016-08-01 12:44:07 +01:00 committed by Jeremy Kersten
parent 7f86272b94
commit fafeb9fb83
1 changed files with 1 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ class stock_picking(osv.osv):
'product_uom_qty': qty,
'name': _('Extra Move: ') + name,
'state': 'draft',
'restrict_partner_id': op.owner_id,
'restrict_partner_id': op.owner_id.id,
'group_id': picking.group_id.id,
}
return res