addons14/queue_job/models/queue_job.py
def _subscribe_users_domain(self):
        """Subscribe all users having the 'Queue Job Manager' group"""
        group = self.env.ref("queue_job.group_queue_job_manager")
        if not group:
            return None
        companies = self.mapped("company_id")
        domain = [("groups_id", "=", group.id)]
        if companies:
            domain.append(("company_id", "in", companies.ids))
        return domain
Subscribe all users having the 'Queue Job Manager' group
Subscribe all users having the 'Queue Job Manager' group
Subscribe all users having the ' Queue Job Manager ' group
def _subscribe_users_domain(self):
        group = self.env.ref("queue_job.group_queue_job_manager")
        if not group:
            return None
        companies = self.mapped("company_id")
        domain = [("groups_id", "=", group.id)]
        if companies:
            domain.append(("company_id", "in", companies.ids))
        return domain
def _subscribe_users_domain ( self ) : group = self . env . ref ( "queue_job.group_queue_job_manager" ) if not group : return None companies = self . mapped ( "company_id" ) domain = [ ( "groups_id" , "=" , group . id ) ] if companies : domain . append ( ( "company_id" , "in" , companies . ids ) ) return domain
Subscribe all users having the 'Queue Job Manager' group
Subscribe all users having the ' Queue Job Manager ' group
"""Subscribe all users having the 'Queue Job Manager' group"""
self