Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: CRM
Entity: crm.lead
Compute Method: _compute_email_state
| Inputs | Method | Outputs |
|---|---|---|
|
for lead in self:
email_state = False
if lead.email_from:
- email_state = 'incorrect'
- for email in email_normalize_all(lead.email_from):
- if mail_validation.mail_validate(email):
- email_state = 'correct'
- break
+ email_state = 'correct' if bool(lead.email_normalized) else 'incorrect'
lead.email_state = email_state
|
|
