summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message.py
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-12-07 12:37:32 +0000
committerNicolas Martinelli <nim@odoo.com>2018-12-10 13:21:21 +0000
commit9e71d228edb4a4405c6c17fbeabc8f7969c26dc5 (patch)
tree3dc760df708e1cf6ecbcbc49a2ac4effaec48b7d /addons/mail/wizard/mail_compose_message.py
parent0687f17622c3e93558a80364ff4b07fa1ed76d8e (diff)
[FIX] mail: translation of custom layout
- Create a PO for a French customer - Send by email The body of the email is in French, but some parts (such as the View button or the footer) are not translated. The body is translated following the field `lang` of the email template, in this case `${object.partner_id.lang}`. This is done when opening the mail composer (so the message appears in French). However, other parts are rendered only when sending: at this point, the language to be used in the template is lost forever in the darkness. To avoid this, we keep a specific context key `custom_layout_lang` that we retrieve when rendering the custom layout. opw-1908420
Diffstat (limited to 'addons/mail/wizard/mail_compose_message.py')
0 files changed, 0 insertions, 0 deletions