From 901c9521e230fe5afd9d516fb8eef3b16fd4ddce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nshimiyimana=20S=C3=A9na?= Date: Wed, 13 Jul 2022 10:58:36 +0000 Subject: [PATCH] [FIX] crm: duplicate 'lost' button on a lead's form view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, two lost buttons will appear, if you go to the form view of a lead that has 100% probability. The difference between the two duplicated "Lost" buttons is that one ask for a "lost reason" before marking a lead/opportunity as lost, the other does not. After discussing with the PO for CRM, it appears that the button that asks for a "lost reason" should not appear on a lead. This commit makes the necessary changes to reflect that behavior. opw-2886623 closes odoo/odoo#96486 X-original-commit: 707bddefdc5604db3304afa3633a0b90027f78b4 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Nshimiyimana Serge Séna (sesn) --- addons/crm/views/crm_lead_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index 48ddac5e8d8..7eb28b0841d 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -10,7 +10,7 @@ type="object" class="oe_highlight" data-hotkey="w" title="Mark as won" attrs="{'invisible': ['|','|', ('active','=',False), ('probability', '=', 100), ('type', '=', 'lead')]}"/>