'Instead of the classic form view, redirect to the online quote if it exists.'

@api.multi
def get_access_action(self):

    self.ensure_one()
    if (not self.template_id):
        return super(SaleOrder, self).get_access_action()
    return {'type': 'ir.actions.act_url', 'url': ('/quote/%s/%s' % (self.id, self.access_token)), 'target': 'self', 'res_id': self.id}
