From 81009807738151f02cf054e7e7740c50899a029b Mon Sep 17 00:00:00 2001 From: Denis Mudarisov Date: Tue, 18 May 2021 08:49:52 +0000 Subject: [PATCH] [FIX] crm: make help note translatable closes odoo/odoo#72789 X-original-commit: f21392f5290d298f43b4a64f4e4cdbbc992df627 Signed-off-by: Thibault Delavallee (tde) --- addons/crm/i18n/crm.pot | 20 ++++++++++++++++++++ addons/crm/models/crm_team.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/addons/crm/i18n/crm.pot b/addons/crm/i18n/crm.pot index ed8b7e39ed4..4f023d0c149 100644 --- a/addons/crm/i18n/crm.pot +++ b/addons/crm/i18n/crm.pot @@ -172,6 +172,14 @@ msgid "" "

" msgstr "" +#. module: crm +#: code:addons/crm/models/crm_team.py:0 +#, python-format +msgid "" +"

As you don't belong to any Sales Team, Odoo opens the first one by " +"default.

" +msgstr "" + #. module: crm #: model_terms:ir.ui.view,arch_db:crm.crm_case_kanban_view_leads msgid "Lost" @@ -2329,6 +2337,12 @@ msgid "" " channels of the sales pipeline." msgstr "" +#. module: crm +#: model:ir.model.fields,field_description:crm.field_res_partner__opportunity_count_ids +#: model:ir.model.fields,field_description:crm.field_res_users__opportunity_count_ids +msgid "Opportunities Count" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_team__opportunities_amount msgid "Opportunities Revenues" @@ -3020,6 +3034,12 @@ msgstr "" msgid "Teams Members" msgstr "" +#. module: crm +#: model:ir.model.fields,help:crm.field_res_partner__opportunity_count_ids +#: model:ir.model.fields,help:crm.field_res_users__opportunity_count_ids +msgid "Technical field used for stat button" +msgstr "" + #. module: crm #: model:ir.model.fields,help:crm.field_crm_team__alias_id msgid "" diff --git a/addons/crm/models/crm_team.py b/addons/crm/models/crm_team.py index 238b70aed2a..3c18597b34c 100644 --- a/addons/crm/models/crm_team.py +++ b/addons/crm/models/crm_team.py @@ -598,7 +598,7 @@ class Team(models.Model): as a member of one of the Sales Team.

""") if user_team_id: - action['help'] += "

As you don't belong to any Sales Team, Odoo opens the first one by default.

" + action['help'] += _("

As you don't belong to any Sales Team, Odoo opens the first one by default.

") action_context = safe_eval(action['context'], {'uid': self.env.uid}) if user_team_id: