diff --git a/mail_environment_office365/models/__init__.py b/mail_environment_office365/models/__init__.py index abbcb50bd..a21a540e3 100644 --- a/mail_environment_office365/models/__init__.py +++ b/mail_environment_office365/models/__init__.py @@ -1 +1,2 @@ from . import ir_mail_server +from . import fetchmail_server diff --git a/mail_environment_office365/models/fetchmail_server.py b/mail_environment_office365/models/fetchmail_server.py new file mode 100644 index 000000000..93b8491f0 --- /dev/null +++ b/mail_environment_office365/models/fetchmail_server.py @@ -0,0 +1,17 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import models + + +class FetchmailServer(models.Model): + _inherit = "fetchmail.server" + + @property + def _server_env_fields(self): + base_fields = super()._server_env_fields + office365_fields = { + "use_microsoft_outlook_service": {}, + } + office365_fields.update(base_fields) + return office365_fields