From 935de7051b50c581b29cf58cfcab8c56f91cc1d1 Mon Sep 17 00:00:00 2001 From: Abraham Anes Date: Fri, 22 Nov 2024 08:57:47 +0100 Subject: [PATCH] [17.0][FIX] website_sale_product_pack: add decorator to remove warnings --- website_sale_product_pack/controllers/main.py | 3 ++- website_sale_product_pack/controllers/variant.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/website_sale_product_pack/controllers/main.py b/website_sale_product_pack/controllers/main.py index 2e062191..95984773 100644 --- a/website_sale_product_pack/controllers/main.py +++ b/website_sale_product_pack/controllers/main.py @@ -1,9 +1,10 @@ -from odoo.http import request +from odoo.http import request, route from odoo.addons.website_sale.controllers.main import WebsiteSale class WebsiteSale(WebsiteSale): + @route() def shop( self, page=0, diff --git a/website_sale_product_pack/controllers/variant.py b/website_sale_product_pack/controllers/variant.py index 4c9d8dae..d7287b5c 100644 --- a/website_sale_product_pack/controllers/variant.py +++ b/website_sale_product_pack/controllers/variant.py @@ -1,9 +1,10 @@ -from odoo.http import request +from odoo.http import request, route from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantController class WebsiteSaleVariantController(WebsiteSaleVariantController): + @route() def get_combination_info_website( self, product_template_id,