partner-contact/partner_email_check/models/res_company.py

23 lines
790 B
Python
Raw Normal View History

2024-10-01 05:51:46 +00:00
# Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from flectra import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
partner_email_check_syntax = fields.Boolean(
string="Check syntax of email addresses",
help="Don't allow email addresses with wrong syntax",
default=True,
)
partner_email_check_filter_duplicates = fields.Boolean(
string="Filter duplicate partner email addresses",
help="Don't allow multiple partners to have the same email address.",
)
partner_email_check_check_deliverability = fields.Boolean(
string="Check deliverability of email addresses",
help="Don't allow email addresses with providers that don't exist",
)