From b2ec6bc7ad906b2286005768f19f57e8c6e04dfb Mon Sep 17 00:00:00 2001 From: Darshil Trivedi Date: Mon, 27 Aug 2018 10:10:58 +0000 Subject: [PATCH] [IMP] mrp: BoM and product as readonly when a MO is set on UB. Since commit 2bd10fa7578a44f0d534020efef059fb054e853d when the user specify a MO the unbuild use the existing moves raw and moves finished in order to create the unbuild moves. In this case the bom_id and the product_id is not needed since we don't generate unbuild move from the BoM This commit is related to task ID 39843. --- addons/mrp/views/mrp_unbuild_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index e811e2a6140..58c1fb6014b 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -113,13 +113,13 @@ - + + ('type', '=', 'normal')]" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>