Daily updates from Odoo
Monday, April 15, 2019
1 change · master
Resolved issues and error corrections
Email campaign seen lists now work for more types of customer or business records, even when they do not use the standard email field names. This prevents crashes and makes campaign tracking more consistent across Odoo apps.
Original PR description
… seen list Before, the assumption was made that if email field doesn't exist on the targeted model, the mail field has to be email_from. So if one model (for example : account.invoince) is targeted and does not have a field email nor email_from, get seen list will crash as it's searching at least on email_from on the targeted model table. Now, wa apply same 'get email field' rule from mail_thread.message_get_default_recipients, that gives us all the possibilities to get the email field of a possible targeted model for sending mails. Also, since introduction of blacklist and mail.address.mixin, primary email can be used if defined on the model. Closes PR # Task ID : 1907292 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr