Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] migr mail show follower: Migration to 18.0 #1559

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[NEW] migrate mail_show_follower
Thomas Pot committed Jan 27, 2025
commit 4fff967e7e09d525d84b1382ef8757d023302928
1 change: 1 addition & 0 deletions mail_show_follower/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 Valentin Vinagre <valentin.vinagre@sygel.es>
# Copyright 2022 Eduardo de Miguel <edu@moduon.team>
# Copyright 2025 Thomas Pot <info@open2bizz.eu>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
7 changes: 5 additions & 2 deletions mail_show_follower/models/mail_mail.py
Original file line number Diff line number Diff line change
@@ -66,7 +66,8 @@ def remove_p(markup_txt):
)
return full_text

def _send(self, auto_commit=False, raise_exception=False, smtp_session=None, alias_domain_id=False):
def _send(self, auto_commit=False, raise_exception=False, smtp_session=None, alias_domain_id=False,
mail_server=False, post_send_callback=None):
group_portal = self.env.ref("base.group_portal")
for mail_id in self.ids:
mail = self.browse(mail_id)
@@ -162,5 +163,7 @@ def _send(self, auto_commit=False, raise_exception=False, smtp_session=None, ali
auto_commit=auto_commit,
raise_exception=raise_exception,
smtp_session=smtp_session,
alias_domain_id=False
alias_domain_id=False,
mail_server=mail_server,
post_send_callback=post_send_callback
)