from odoo import http from odoo.http import request from odoo.addons.web.controllers.binary import Binary class WebsiteBinary(Binary): @http.route([ '/web/assets///'], type='http', auth="public") def content_assets_website(self, website_id=None, **kwargs): if not request.env['website'].browse(website_id).exists(): raise request.not_found() return super().content_assets(**kwargs, assets_params={'website_id': website_id})