When a record inaccessible by the user is linked to a message in a channel accessible to the user, Avoid to raise an access error due to this linked record. Also need an aditional query in test query_count. closes odoo/odoo#28312
activity
3c108977c1
message_main_attachment_id
f6ca72b3ce