From 75231185a4b409e087916e706bbdff9ae57a6cb9 Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 30 Mar 2023 08:39:35 +0000 Subject: [PATCH] [IMP] iap_mail: improve lead enrichment message Purpose ======= Improve the display of the lead enrichment message appearing in the chatter after an enrichment. Specification ============= In the enrichment chatter message: - Remove the display of the company logo if the company doesn't have any. ( Using alt="" to avoid displaying both image and text placeholders if logo url exists but leads to a blank page) - Fix the info alignment when having long characters. - Add the twitter URL next to the followers count in the enrichment info. Task-3204763 Part-of: odoo/odoo#115326 --- addons/iap_mail/__manifest__.py | 1 + addons/iap_mail/data/mail_templates.xml | 32 +++++++++++-------- addons/iap_mail/static/src/scss/iap_mail.scss | 4 +++ 3 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 addons/iap_mail/static/src/scss/iap_mail.scss diff --git a/addons/iap_mail/__manifest__.py b/addons/iap_mail/__manifest__.py index 062096d255d..5d94753debb 100644 --- a/addons/iap_mail/__manifest__.py +++ b/addons/iap_mail/__manifest__.py @@ -20,6 +20,7 @@ 'assets': { 'web.assets_backend': [ 'iap_mail/static/src/js/**/*', + 'iap_mail/static/src/scss/iap_mail.scss', ], }, 'license': 'LGPL-3', diff --git a/addons/iap_mail/data/mail_templates.xml b/addons/iap_mail/data/mail_templates.xml index 3deb23a99ce..5f7bc9e05c6 100644 --- a/addons/iap_mail/data/mail_templates.xml +++ b/addons/iap_mail/data/mail_templates.xml @@ -23,19 +23,19 @@

-

- Company Logo +
+

-
+
Company type
-
+
Founded
@@ -45,7 +45,7 @@ -
+
Sectors
@@ -54,19 +54,19 @@
-
+
Employees
-
+
Estimated revenue
per year
-
+
Phone
@@ -75,7 +75,7 @@
- -
+
Timezone
-
+
Technologies Used
@@ -98,12 +98,18 @@
-
+
Twitter
diff --git a/addons/iap_mail/static/src/scss/iap_mail.scss b/addons/iap_mail/static/src/scss/iap_mail.scss new file mode 100644 index 00000000000..727487e6f7d --- /dev/null +++ b/addons/iap_mail/static/src/scss/iap_mail.scss @@ -0,0 +1,4 @@ +.o_partner_autocomplete_enrich_info i { + /* To prevent the icons from being cropped when there is not enough available space */ + min-width: fit-content; +}