mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
24 lines
791 B
Python
24 lines
791 B
Python
|
# 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",
|
||
|
)
|