From ab31d43fb98df941caf523c058247eba27ebf2a5 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 15 Sep 2017 13:55:27 +0200 Subject: [PATCH] [FIX] stock: stock user create lot When a stock user want to create a lot an exception is raised saying that he cannot modify a product. This is caused by the field 'product_uom_id' on the model 'stock.production.lot' that is a related to 'product.product' and not set as readonly in the 'stock.production.lot' view. So by setting it as readonly, we don't set the uom to the server, and so don't try to re-write it on the product --- addons/stock/views/stock_production_lot_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/stock_production_lot_views.xml b/addons/stock/views/stock_production_lot_views.xml index 0f6a934832b..98347b3beef 100644 --- a/addons/stock/views/stock_production_lot_views.xml +++ b/addons/stock/views/stock_production_lot_views.xml @@ -28,7 +28,7 @@