From 94dec61301c51da28c4b8996d1a96e76908b3ec4 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 2 Jul 2018 17:03:17 +0200 Subject: [PATCH] [FIX] stock: move lines readonly when in entire package When a move line is in an entire package and the entire package option is enabled, you shouldn't be able to modify them in the move form view. So we make all fields of the move lines readonly when it has a package_level_id and its picking_type has 'Show entire package' option enabled --- addons/stock/views/stock_move_views.xml | 20 +++++++++++--------- addons/stock/views/stock_picking_views.xml | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index 058a8f63793..c4fc5006383 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -139,6 +139,7 @@ + @@ -187,19 +188,20 @@ - - - - - - - + + + + + + + + - - + + diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index d1b60b09ab5..df9ce2cde8a 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -258,7 +258,7 @@ - +