from odoo.http import request, Controller, route from odoo import http, _ class Website(Controller): @route(['/shop', '/shop/cart'], auth='public', website=True) def shop(self, **kw): return request.redirect('https://indoteknik.com/shop/promo', code=302) @http.route('/content', auth='public') def content(self, **kw): url = kw.get('url', '') iframe = f"" style = ''' ''' script = ''' ''' content = '' + '' + iframe + style + script + '' + '' return request.make_response(content, [('Access-Control-Allow-Origin', '*'), ('Access-Control-Allow-Headers', '*')])