'Renders the Response\'s template, returns the result'

def render(self):

    env = request.env(user=(self.uid or request.uid or odoo.SUPERUSER_ID))
    self.qcontext['request'] = request
    return env['ir.ui.view'].render_template(self.template, self.qcontext)
