[FIX] stock: hide partner_id for internal transfers

onchange_picking_type func now return picking_type_code
The stock.picking has an attrs to hide the partner_id for internal transfers.
It was not set as picking_type_code was not set.

Closes #12117
This commit is contained in:
Sylvain LE GAL
2016-05-31 16:52:59 +02:00
committed by Martin Trigaux
parent a97ac3e851
commit f95963319e
+2 -1
View File
@@ -913,7 +913,8 @@ class stock_picking(models.Model):
location_dest_id = picking_type.default_location_dest_id.id
res['value'] = {'location_id': location_id,
'location_dest_id': location_dest_id,}
'location_dest_id': location_dest_id,
'picking_type_code': picking_type.code,}
return res
def _default_location_destination(self):