Skip to content

Commit

Permalink
[FIX] mail: no mail sent to followers
Browse files Browse the repository at this point in the history
- If the `internal` field/column on the message subtypes (table: `mail_message_subtype`) is set to null instead of false in the
  database, the notifications to the followers are not sent by mail.

closes odoo#28699
  • Loading branch information
tbe-odoo committed Nov 14, 2018
1 parent ce616ff commit 7749919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mail/models/mail_followers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_recipient_data(self, records, subtype_id, pids=None, cids=None):
SELECT partner_id FROM sub_followers
WHERE sub_followers.channel_id IS NULL
AND sub_followers.partner_id = partner.id
AND (sub_followers.internal <> TRUE OR partner.partner_share <> TRUE)
AND (coalesce(sub_followers.internal, false) <> TRUE OR coalesce(partner.partner_share, false) <> TRUE)
) %s
GROUP BY partner.id, users.notification_type
UNION
Expand Down

0 comments on commit 7749919

Please sign in to comment.