title: Odoo mail.activity creation
body: <p>I'm trying to create a custom activity using <code>'mail.activity'</code> model, with custom values, and show me this error:</p>
  <pre><code>File &quot;/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_activity.py&quot;, line 108, in 
  _compute_res_name
  activity.res_name = self.env[activity.res_model].browse(activity.res_id).name_get()[0][1]
  IndexError: list index out of range
  </code></pre>
  <p>I think is because in the core <code>mail.activity</code> model, the access to the <code>0</code> and <code>1</code> position in the array crash my program, but I dont know why.</p>
  <p>Here is my code for the activity creation:</p>
  <pre><code>@api.model
  def create(self, vals)
      user_id = self.user_id
      date_deadline = datetime.now() + timedelta(days=7)
  
      data = {
          'res_id': self.id,
          'res_model_id': self.env['ir.model'].search([('model', '=', 'hr.applicant')]).id,
          'user_id': user_id.id,
          'summary': 'foo bar',
          'activity_type_id': self.env.ref('custom.activity_applicant').id,
          'date_deadline': date_deadline
          }
      self.env['mail.activity'].create(data)
      return super().create(vals)
  </code></pre>
  <p>There is something in the field <code>res_id</code> that I don't know about or something else.</p>