Hi,
Anyone has idea how to replace home page in v11?
Rgds,
Anil
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
Anyone has idea how to replace home page in v11?
Rgds,
Anil
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
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?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jul 22
|
9050 | ||
|
0
Nov 24
|
2858 | ||
|
0
Jun 21
|
2446 | ||
|
1
Jun 21
|
2324 | ||
[SOLVED] Get related field
Solved
|
|
2
Feb 21
|
299 |