Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Email tracking
Entity: mail.tracking.event
Compute Method: _compute_recipient_address
| Inputs | Method | Outputs |
|---|---|---|
|
+ for email in self: + if email.recipient: + matches = re.search(r"<(.*@.*)>", email.recipient) + if matches: + email.recipient_address = matches.group(1).lower() + else: + email.recipient_address = email.recipient.lower() + else: + email.recipient_address = False |
|
