diff --git a/addons/mail/models/mail_channel.py b/addons/mail/models/mail_channel.py index c4fa5d98e4e..c34eae67f53 100644 --- a/addons/mail/models/mail_channel.py +++ b/addons/mail/models/mail_channel.py @@ -500,8 +500,13 @@ class Channel(models.Model): values['channel_private_group'] = self.search([('channel_type', '=', 'channel'), ('public', '=', 'private'), ('channel_partner_ids', 'in', [my_partner_id])]).channel_info() return values + # TODO master: remove domain argument @api.model def channel_search_to_join(self, name=None, domain=None): + return self._channel_search_to_join(name) + + @api.model + def _channel_search_to_join(self, name=None, domain=None): """ Return the channel info of the channel the current partner can join :param name : the name of the researched channels :param domain : the base domain of the research