Skip to content
Snippets Groups Projects
Commit 437361f3 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] mail: support multi email in '_mail_find_partner_from_emails'

PURPOSE

Be defensive when dealing with email fields, notably when having multi-emails
or email field containing an already-formatted email.

SPECIFICATIONS

Tool method '_mail_find_partner_from_emails' that searches for partners based
on email is improved to support multi-emails input. Instead of skipping
multi-email (current behavior of 'email_normalize') we now consider first
found email in the input.

It is used notably to match incoming email / partners or suggest recipients
in Chatter.

Task-2612945 (Mail: Defensive email formatting)

X-original-commit: odoo/odoo@b8458b092089245c5123f272e4b772beb9b387ed
Part-of: odoo/odoo#134188
parent e1e383ca
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment