Skip to Content
Menu
This question has been flagged
1 Atsakyti
6355 Rodiniai

Hi,

Anyone has idea how to replace home page in v11?

Rgds,

Anil


Portretas
Atmesti
Best Answer

Hi,

You can try something like this,

from odoo import http
from odoo.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('<template_external_id>', data)


Thanks

Portretas
Atmesti
Autorius

Thanks, This is the exact answer for replacing home page. Could be possible to override with page template id? I want to append the base template, the route will pass some information in the response dictionary. like we have template ID as homepage in v10, what is the template ID for homepage in v11?

Related Posts Replies Rodiniai Veikla
2
liep. 22
9124
0
lapkr. 24
2901
0
birž. 21
2457
1
birž. 21
2405
2
vas. 21
299