diff options
| author | David Beguin <dbe@odoo.com> | 2018-11-09 08:45:59 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-04-15 09:25:27 +0000 |
| commit | aa5faae41c6e881f6410349d2f11f40819fcc7bb (patch) | |
| tree | a7008c7062e53b12bc45f969ef967f3447c4318e /addons/mail/static/src/xml | |
| parent | 732ec79767969fa3109423925d40ebf2f4ae9c5e (diff) | |
[IMP] mass_mailing : improve heuristics to handle seen mails
Currently the assumption is that if email field doesn't exist on the target
model the mail field has to be email_from. So if one model is targeted and
does not have a field email nor email_from the seen list will raise as it is
searching at least on email_from on the targeted model table.
Better heuristics implemented here is to apply the same rule as
'get email field' from MailThread.message_get_default_recipients§). It
searches for email_normalized (address mixin), email_from, partner_email
and email fields in addition to partner_id which covers all use cases in odoo.
Related to task ID 1907292
Linked to PR #28535
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/static/src/xml')
0 files changed, 0 insertions, 0 deletions
