Sunday, August 23, 2026
1 change · saas-18.4
Resolved issues and error corrections
Mentioning a partner linked to multiple active users in a discussion sub-channel no longer causes an error. The system now checks each user's notification preference and invites the partner when at least one user has not disabled channel notifications, improving reliability for internal conversations.
Original PR description
Before this commit, mentioning a partner that has two active users in a sub-channel ended on: ValueError: Expected singleton: res.users.settings(77, 80) This happens because the channel notification setting is read through res_users_settings_id, a Many2one on res.users, so two users give two settings records and reading a value on them asks for a singleton. Only an administrator reaches it, as the res.users.settings rule limits everyone else to their own settings. This commit fixes the issue by inviting the partner as soon as one of its users did not turn channel notifications off. Forward-Port-Of: odoo/odoo#283912 Forward-Port-Of: odoo/odoo#283805