diff options
| author | nie <nie@odoo.com> | 2021-04-01 15:12:09 +0000 |
|---|---|---|
| committer | nie <nie@odoo.com> | 2021-05-27 14:25:28 +0000 |
| commit | 74da8e27c7e16fa92eb1547cec1a7ce82e15e0c6 (patch) | |
| tree | 2eb9c0584072735aa4dc10d80a7646cb6ac2e913 /addons/base_setup/static/src | |
| parent | fb556ed09c7ed00afbed33b6029b1315a113575a (diff) | |
[FIX] mail: use template lang on layout and display name
Steps:
- Install sale
- Go to Settings / Translations / Languages
- Activate Dutch
- Go to Settings / Users & Companies / Users
- Edit demo
- Language: Dutch
- Go to Sales
- Create a quotation:
- Customer: demo
- Go to Settings / Technical / Automation / Scheduled Actions
- Create a new action:
- Model: Sales Order
- Python code:
```python
last_id = model.search([], order='id desc', limit=1)[0].id
env.ref('sale.email_template_edi_sale').send_mail(last_id, notif_layout='mail.mail_notification_paynow')
```
- Click "Run Manually"
- Go to Settings / Technical / Email / Emails
- Open the last email you just sent
Bug:
Parts of the email are not in Dutch
Explanation:
This commit makes a template pass the rendering language to the layout
and the display name when calling `template.send_mail()`.
opw:2467640
closes odoo/odoo#68656
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/base_setup/static/src')
0 files changed, 0 insertions, 0 deletions
