'Search for opportunities that have the same partner and that arent done or cancelled'

@api.model
def _get_duplicated_leads(self, partner_id, email, include_lost=False):

    return self.env['crm.lead']._get_duplicated_leads_by_emails(partner_id, email, include_lost=include_lost)
