From 94de6b501bdf39bc4a246d085f75d2d5cef54491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 17 Dec 2020 08:51:48 +0000 Subject: [PATCH] [IMP] crm: always hide alias left part when domain is not configured When alias domain is not configured always display "Configure a custom domain" link instead of an email having only a left-part or "Inactive alias" if left part is void. This is already the case in edit mode but not in read mode. New specification is * domain is not configured: display link in both read and edit mode; * domain is configured and left part is set: display alias; * domain is configured and left part is not set: display "Inactive alias" in read and display alias name for edition in edit; LINKS Task ID-2414079 COM PR odoo/odoo#63160 UPG PR odoo/upgrade#2017 --- addons/crm/views/crm_team_views.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/crm/views/crm_team_views.xml b/addons/crm/views/crm_team_views.xml index 7eb900bca17..4ca2195f9d6 100644 --- a/addons/crm/views/crm_team_views.xml +++ b/addons/crm/views/crm_team_views.xml @@ -124,9 +124,10 @@
-
-
+ string="Email Alias" required="0" + attrs="{'invisible': [('alias_domain', '=', False)]}"/> +
+
@