def action_primary_channel_button(self):
    if self.use_opportunities:
        return self.env['ir.actions.actions']._for_xml_id('crm.crm_case_form_view_salesteams_opportunity')
    return super(Team, self).action_primary_channel_button()
def action_primary_channel_button(self):
    if self.use_opportunities:
        return self.env['ir.actions.actions']._for_xml_id('crm.crm_case_form_view_salesteams_opportunity')
    return super(Team, self).action_primary_channel_button()