summaryrefslogtreecommitdiff
path: root/setup/setup_dev.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2016-12-06 13:09:07 +0100
committerThibault Delavallée <tde@odoo.com>2016-12-06 15:15:48 +0100
commitdb72451607383cd8f4c6a674868a9f468ae828ef (patch)
tree55c0f62635fdcbb1a05369438c3533dc5b7e4d38 /setup/setup_dev.py
parentdf037e295971650e8843b2ee668501e7aa3e7df6 (diff)
[FIX] mail: avoid notifying a message by email when it is already an email
When creating a mail.mail without giving a mail_message_id, a new mail.message is created. It does then through _notify that notifies people of the message creation. This leads to mail being sent two times, one when sending the mail.mail, one when sending the notification. This commits fixes that behavior. When creating directly a mail.mail without giving a mail.message, call to _notify is bypassed. This way either an email is created, either a message that has to be notified is created, but not both.
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions