From 10d5c11de32d29e295f511b80abdac22041aa408 Mon Sep 17 00:00:00 2001 From: Dhaval Panchal Date: Fri, 10 Feb 2017 17:20:27 +0100 Subject: [PATCH] [IMP] stock: picking type view - Only display the warehouse and location field when the user is working with multi warehouses and multi locations. - MRP defines a stock.picking.type on manufacturing order, so that you can easily set the source/destination locations and benefit from seeing a manufacturing vignette in the inventory dashboard. However, the manufacturing orders do not use every options defined on this view, specifically the return picking type, the barcode nomenclature and the packs and lots. This commit hides these options when the vignette is an MRP one (manufacturing code). A cleaner patch would have been to adds attrs with an xpath from the MRP module, but if another modules wants to add another vignette there will be a problem, so we chose the easiest way here. --- addons/stock/views/stock_picking_views.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 1fb333e81a8..8ec8b57a789 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -40,21 +40,21 @@ - + - - + + - + - +