From f95963319e16efb20929cd3882c0db9bd746296e Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Fri, 20 May 2016 11:51:51 +0200 Subject: [PATCH] [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 --- addons/stock/stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 7c47f757198..32753fb18ea 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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):