Hello,
I am trying to inherit odoo 13 website main controllers index method. below is my code
from addons.website.controllers.main import Website
from odoo import http
from odoo.http import request
class WebsiteSort(Website):
@http.route(auth='public')
def index(self, **kw):
super(WebsiteSort, self).index()
website_product_ids = request.env['product.template'].search([('is_published', '=', True)])
return request.render('website.homepage', {
'website_product_ids': website_product_ids
})
When I debug with PyCharm I can see that the parent method executes but not my inherited method. It's not even calling super()! I have properly imported .py in __init__.py file.
Appreciate your help. Thank you