docs: def action_add_url(self):
          """Adds the URL with the given name as an ir.attachment record."""
          if not self.env.context.get('active_model'):
              return
          attachment_obj = self.env['ir.attachment']
          for form in self:
              url = parse.urlparse(form.url)
              if not url.scheme:
                  url = parse.urlparse('%s%s' % ('http://', form.url))
              for active_id in self.env.context.get('active_ids', []):
                  attachment = {
                      'name': form.name,
                      'type': 'url',
                      'url': url.geturl(),
                      'res_id': active_id,
                      'res_model': self.env.context['active_model'],
                  }
                  attachment_obj.create(attachment)
          return {'type': 'ir.actions.act_close_wizard_and_reload_view'}