From 0b27b4dde176d748decd1c0f7ac0e908190970a7 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 21 May 2020 23:47:19 +0000 Subject: [PATCH] [FIX] mrp: `action_open_product_lot` is in the view `product_product_form_view_bom_button` The button `action_open_product_lot` is added by the view `product_product_form_view_bom_button`. Both the current view and the view `product_product_form_view_bom_button` inherited from the view `product.product_normal_form_view`, without any priority specified. In order to make sure the button `action_open_product_lot` is in the view when the view `product_product_form_view_bom_button` is loaded, you either need to directly inherits from the view holding that button `product_form_view_procurement_button` either you need to increase the priority of the current view so `product_product_form_view_bom_button` is loaded in priority. Same thing for the view `product_template_form_view_bom_button` Upgrade Request 47960 ``` ValueError: Element '' cannot be located in parent view Error context: View `product.product.procurement` [view_id: 783, xml_id: mrp.product_product_form_view_bom_button, model: product.product, parent_id: 319] ``` closes odoo/odoo#51655 X-original-commit: 26fac2af85acb0ae9f9e479aec5eb16930d69e49 Signed-off-by: Denis Ledoux (dle) --- addons/mrp/views/product_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/views/product_views.xml b/addons/mrp/views/product_views.xml index 69fe0d253ab..62ec9b43155 100644 --- a/addons/mrp/views/product_views.xml +++ b/addons/mrp/views/product_views.xml @@ -72,7 +72,7 @@ product.template.procurement product.template - + @@ -101,7 +101,7 @@ product.product.procurement product.product - +