[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user