From 40b17cee0fb48691b80d98960ae6e2e54dabd1c6 Mon Sep 17 00:00:00 2001 From: adsh-odoo Date: Mon, 17 Jul 2023 06:33:10 +0000 Subject: [PATCH] [FIX] crm: update the helper store As the "Create" button is renamed to "New" so update it and remove "top left" in helper to enhance clarity and avoid any confusion. Task-3420529 closes odoo/odoo#130432 X-original-commit: 7a1bcb9c74eb48877731367b3da95c1eec7db19b Signed-off-by: Thibault Delavallee (tde) --- addons/crm/i18n/crm.pot | 19 +++++++++++++++++++ addons/crm/models/crm_lead.py | 2 +- addons/crm/views/crm_helper_templates.xml | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/addons/crm/i18n/crm.pot b/addons/crm/i18n/crm.pot index 7aab7eee344..3445f5e1374 100644 --- a/addons/crm/i18n/crm.pot +++ b/addons/crm/i18n/crm.pot @@ -3713,6 +3713,11 @@ msgstr "" msgid "Use the top left Create button, or send an email to" msgstr "" +#. module: crm +#: model_terms:ir.ui.view,arch_db:crm.crm_action_helper +msgid "Use the New button, or send an email to" +msgstr "" + #. module: crm #. odoo-python #: code:addons/crm/models/crm_lead.py:0 @@ -3722,6 +3727,14 @@ msgid "" " test the email gateway." msgstr "" +#. module: crm +#. odoo-python +#: code:addons/crm/models/crm_lead.py:0 +#, python-format +msgid "" +"Use the New button, or send an email to %s to test the email gateway." +msgstr "" + #. module: crm #: model_terms:ir.ui.view,arch_db:crm.crm_action_helper msgid "" @@ -3729,6 +3742,12 @@ msgid "" "email gateway." msgstr "" +#. module: crm +#: model_terms:ir.ui.view,arch_db:crm.crm_action_helper +msgid "" +"Use the New button, or configure an email alias to test the email gateway." +msgstr "" + #. module: crm #: model_terms:ir.actions.act_window,help:crm.crm_opportunity_report_action msgid "Use this menu to have an overview of your Pipeline." diff --git a/addons/crm/models/crm_lead.py b/addons/crm/models/crm_lead.py index e777cce4f94..68a99774da8 100644 --- a/addons/crm/models/crm_lead.py +++ b/addons/crm/models/crm_lead.py @@ -1278,7 +1278,7 @@ class Lead(models.Model): if alias_record and alias_record.alias_domain and alias_record.alias_name: email = f'{alias_record.alias_name}@{alias_record.alias_domain}' - sub_title = Markup(_('Use the top left Create button, or send an email to %(email_link)s to test the email gateway.')) % { + sub_title = Markup(_('Use the New button, or send an email to %(email_link)s to test the email gateway.')) % { 'email_link': Markup("%s") % (email, email), } return super().get_empty_list_help( diff --git a/addons/crm/views/crm_helper_templates.xml b/addons/crm/views/crm_helper_templates.xml index 13a422ab60e..f3610e25e58 100644 --- a/addons/crm/views/crm_helper_templates.xml +++ b/addons/crm/views/crm_helper_templates.xml @@ -4,13 +4,13 @@

Create an opportunity to start playing with your pipeline. -

Use the top left Create button, or send an email to +

Use the New button, or send an email to to test the email gateway.

Create an opportunity to start playing with your pipeline.

-

Use the top left Create button, or configure an email alias to test the email gateway.

+

Use the New button, or configure an email alias to test the email gateway.