# from odoo import http # from odoo.http import request # # # class SurveyController(http.Controller): # # @http.route() # def fill(self, survey, *args, **kwargs): # response = super().fill(survey, *args, **kwargs) # # # Inject JavaScript # js_code = """ # # """ # # # Inject before # response.set_data(response.get_data(as_text=True).replace('', js_code + '')) # return response