Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4387 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 21
24553
3
ก.ค. 21
21572
0
ม.ค. 21
2360
Require checkbox to be selected แก้ไขแล้ว
1
พ.ย. 20
6680
1
ก.ย. 20
3429