[FIX] crm: make help note translatable

closes odoo/odoo#72789

X-original-commit: f21392f5290d298f43b4a64f4e4cdbbc992df627
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Denis Mudarisov
2021-06-25 12:43:12 +00:00
committed by Ivan Yelizariev
parent 824af72a9b
commit 8100980773
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -172,6 +172,14 @@ msgid ""
"</p>"
msgstr ""
#. module: crm
#: code:addons/crm/models/crm_team.py:0
#, python-format
msgid ""
"<p>As you don't belong to any Sales Team, Odoo opens the first one by "
"default.</p>"
msgstr ""
#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_case_kanban_view_leads
msgid "<span class=\"bg-danger\">Lost</span>"
@@ -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 ""
+1 -1
View File
@@ -598,7 +598,7 @@ class Team(models.Model):
as a member of one of the Sales Team.
</p>""")
if user_team_id:
action['help'] += "<p>As you don't belong to any Sales Team, Odoo opens the first one by default.</p>"
action['help'] += _("<p>As you don't belong to any Sales Team, Odoo opens the first one by default.</p>")
action_context = safe_eval(action['context'], {'uid': self.env.uid})
if user_team_id: