[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user