Skip to content

Commit

Permalink
fixup! [ADD] mail_environment_office365
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaniszewska-dev committed Dec 30, 2022
1 parent 281dfa8 commit 258766a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions mail_environment_office365/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import ir_mail_server
from . import fetchmail_server
17 changes: 17 additions & 0 deletions mail_environment_office365/models/fetchmail_server.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 258766a

Please sign in to comment.