1

我想继承主页为我关注的登录用户添加一些信息

odoo 表格odoo 伙伴 youtube

它不工作这是我的代码

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)
4

0 回答 0