'Instead of the classic form view, redirect to website if it is published.'

@api.multi
def get_access_action(self):

    self.ensure_one()
    if self.website_published:
        return {'type': 'ir.actions.act_url', 'url': ('%s' % self.website_url), 'target': 'self', 'res_id': self.id}
    return super(Slide, self).get_access_action()
