跳至内容
菜单
此问题已终结
2 回复
4302 查看

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)






形象
丢弃

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

pls replace

编写者

hi @Usman thank u for replying

it did not work

相关帖文 回复 查看 活动
2
12月 21
24443
3
7月 21
21411
0
1月 21
2278
1
11月 20
6589
1
9月 20
3346