From 66f8901143eaea1b54d4ef2bb648d93c52a18a15 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Tue, 10 Jan 2023 14:47:12 +0000 Subject: [PATCH] [FIX] mrp: cannot open product template view When you don't have any mrp access rights and want to open a product template form view, you get an access error. This is caused by the field bom_count that tries to count the number of BOM without having the access rights. So we only add this field to the view, and the action that depends on it when you have mrp access rights. closes odoo/odoo#109636 X-original-commit: a655276d556f1d2bf92c3f3160a8306cc673a115 Signed-off-by: William Henrotin (whe) --- addons/mrp/views/product_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mrp/views/product_views.xml b/addons/mrp/views/product_views.xml index 0516b53a44a..35c639b2a91 100644 --- a/addons/mrp/views/product_views.xml +++ b/addons/mrp/views/product_views.xml @@ -8,7 +8,7 @@ - +