diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-03-02 19:13:28 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-03-03 13:24:41 +0100 |
| commit | 88e712202020d3da0569991bc08e710bf962112e (patch) | |
| tree | 287d01618073b3720043d2a80b1ecff0da87f655 /addons/mail/data/mail_data.xml | |
| parent | fad47882722408a120ecfcd88b3ff650d4e09d2f (diff) | |
[FIX] mail: mail_server_id
When a specific SMTP server is set on a mail template, it is never used
when the mail is sent. There are two reasons:
- `mail_server_id` is a read-only field set by an onchange. However, a
read-only field is not sent to the server, so the information is lost.
- The information is stored in the context of the object `Mail`, but it
is never used. Moreover, when the method `message_post` is called, the
`Mail` object is not used to post the message, so the information is
lost again.
The fix includes two parts:
- the `mail_server_id` field is not read-only anymore. Actually, there
is no reason to make it read-only.
- the information is stored directly in the mail values and used at the
appropriate moment.
Fixes #6554 (from v9.0)
opw-669958
Diffstat (limited to 'addons/mail/data/mail_data.xml')
0 files changed, 0 insertions, 0 deletions
