forked from odoo/odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mass_mailing: missing auto_commit in
send_mail
overrides
The argument `auto_commit` was omitted in `send_mail` overrides. `auto_commit` was therefore allmost always `False` when reaching the `send` method of model `mail.mail`, in `mail/mail_mail.py`. At least it was when either `sale`, `purchase` or `account` were installed. Not committing the sql transaction leaded to the fact the mail statistics were never created when the queue process was interrupted (e.g. process time limit reached), and knowing if an email in a mass mailing has already been sent or not is based on the fact the mail statistics exists or not. Therefore, if a mass mailing sending process was interrupted, the emails were re-sent over and over. opw-649106
- Loading branch information
1 parent
63a5bc8
commit 9ad3575
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters