mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-25 05:41:47 +00:00
28 lines
870 B
Python
28 lines
870 B
Python
|
from flectra import api, fields, models
|
||
|
|
||
|
|
||
|
class ResConfigSettings(models.TransientModel):
|
||
|
_inherit = "res.config.settings"
|
||
|
|
||
|
partner_email_check_syntax = fields.Boolean(
|
||
|
related="company_id.partner_email_check_syntax",
|
||
|
readonly=False,
|
||
|
)
|
||
|
|
||
|
partner_email_check_filter_duplicates = fields.Boolean(
|
||
|
related="company_id.partner_email_check_filter_duplicates",
|
||
|
readonly=False,
|
||
|
)
|
||
|
|
||
|
partner_email_check_check_deliverability = fields.Boolean(
|
||
|
related="company_id.partner_email_check_check_deliverability",
|
||
|
readonly=False,
|
||
|
)
|
||
|
|
||
|
@api.onchange(
|
||
|
"partner_email_check_syntax", "partner_email_check_check_deliverability"
|
||
|
)
|
||
|
def _onchange_partner_email_check_check_deliverability(self):
|
||
|
if self.partner_email_check_check_deliverability:
|
||
|
self.partner_email_check_syntax = True
|