[FIX] mail: no mail sent to followers

- 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/odoo#28699
This commit is contained in:
Toufik Ben Jaa
2018-11-14 18:54:12 +00:00
parent ce616fff6c
commit 774991946e
+1 -1
View File
@@ -121,7 +121,7 @@ SELECT partner.id as pid, NULL AS cid,
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