I want to make shop page as a homepage, it is done by frontend also in Edit Menu.
but i want to hide /shop in URL.
I got this code, but not working for me properly.
# -*- coding: utf-8 -*- from openerp import http from openerp.addons.website.controllers.main import Website class Website(Website): @http.route(auth='public') def index(self, data={},**kw): super(Website, self).index(**kw) return http.request.render('website_sale.products', data)
this gives error -
Error to render compiling AST
TypeError: 'NoneType' object is not callable
Template: website_sale.search
Path: /templates/t/form
Node: <form t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else None, search=0)" method="get" t-att-class="search_class">
<t t-if="attrib_values">
<t t-foreach="attrib_values" t-as="a">
<input type="hidden" name="attrib" t-att-value="'%s-%s' % (a[0], a[1])" data-oe-id="751" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/t[1]/t[1]/input[1]"/>
</t>
</t>
<t t-call="website.website_search_box"/>
</form>