You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
867 B

from odoo 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