From 27e9c9e01179bfe3a53460ec6a6f88b6b7b38215 Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Thu, 21 Mar 2019 14:33:21 +0000 Subject: [PATCH] [FIX] mrp: unlock a raw move line Usecase to reproduce: - Go on a Mo - Edit and Unlock - Produce the MO - Update a raw move and add a move line User error you quant write on product_qty fields. product_qty represent the reserved quantity on move line as quant's UoM. The system requires to write a product_uom_qty that represent the same quantity but in the move line UoM. Fix it by removing the fields from the view, so it's no more save. Also set the quantity done as readonly if the lines are present in the view. closes odoo/odoo#32135 Signed-off-by: Arnold Moyaux --- addons/mrp/views/stock_move_views.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/mrp/views/stock_move_views.xml b/addons/mrp/views/stock_move_views.xml index 46b52a10513..0fa775ad12f 100644 --- a/addons/mrp/views/stock_move_views.xml +++ b/addons/mrp/views/stock_move_views.xml @@ -26,7 +26,7 @@