diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-02-08 05:34:44 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-02-08 05:34:44 +0000 |
| commit | b6d62f8ce38774fcffd94ee8450ae570def8e900 (patch) | |
| tree | bb62539466e8e16f701c02d5a4d12839ba69ebc6 /addons/payment_authorize/controllers | |
| parent | 785e5f149c055a0c6f58b6c86973be52a0491fc6 (diff) | |
[FIX] mail: translate activity name
This commit fixes two untranslated terms in the activity view.
From the cohort view, when clicking on a cell to see details, the title was not
translated (missing _t call).
The content was not translated either as the language was not present in the
context.
36d45175b087 was a first step to fix it but while self.record contained data,
self.record.getContext() returns an empty dictionnary (no context is set in the
cohort view).
When computing the context, check that it is not empty, otherwise, fallback on
the session context.
opw-1936855
closes odoo/odoo#30942
Diffstat (limited to 'addons/payment_authorize/controllers')
0 files changed, 0 insertions, 0 deletions
