diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-07-10 14:50:07 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-07-11 07:46:57 +0000 |
| commit | d8deacfdc3d15ce1d1dd23640d57404ad02ad6f4 (patch) | |
| tree | a10058a60aefc21f649312c5e5bc565f0e9f7aa6 /doc | |
| parent | 715834c6e77bcec0029485c9ee3922e3c1a65083 (diff) | |
[FIX] mail: set email_from in composer only if set
Some functional flows use sudo() to create records as current user is the
public user. This user has no email. Since 1e6c3bec2c5ca621344b09e58dbed535e80fb343 using sudo does
not take superuser identity completely as it only bypasses access rights.
It means some messages are created with public user as author, meaning no
email_from.
In this commit we fix some functional flows by setting a default email_from
in the message composer only if a real email is found. Otherwise it will have
to be set either by the template, either later in the process when creating
messages or emails.
closes odoo/odoo#34742
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
