class Website(http.Controller):
@http.route(['/'], type='http', auth='public', website=True)
def index(self, **kw):
if http.request.env.user.partner_id.property_product_pricelist:
# Set the pricelist to the user's allocated pricelist
http.request.website.sale_get_order(force_pricelist=http.request.env.user.partner_id.property_product_pricelist.id)
return http.request.render('website.homepage')