Skip to Content
Menú
This question has been flagged
2 Respostes
4300 Vistes

I wanted to inherit the home page to add some information for login user  I followed 

https://www.odoo.com/fr_FR/forum/aide-1/question/odoo-v11-website-how-to-replace-home-page-139437

and 

https://www.youtube.com/watch?v=htVBViZl45Q

it is not working this is my code


from odoo import http
from odoo.http import request
from odoo.addons.website_sale.controllers.main import Website
class Website_inherit(Website):
    @http.route('/', type='http', auth="public", website=True)
    def index(self, **kw):
        res = super(Website_inherit, self).index(**kw)
        print("vlad work")
        
        
        return http.request.render('n_theme.name_app', data)






Avatar
Descartar

def index(self, data={}, **kw):

pls replace

Autor

hi @Usman thank u for replying

it did not work

Related Posts Respostes Vistes Activitat
2
de des. 21
24438
3
de jul. 21
21410
0
de gen. 21
2273
1
de nov. 20
6583
1
de set. 20
3340