Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Odoo 8 odoov8中的路由页面_Odoo 8_Odoo 9 - Fatal编程技术网

Odoo 8 odoov8中的路由页面

Odoo 8 odoov8中的路由页面,odoo-8,odoo-9,Odoo 8,Odoo 9,尝试在Odoo8中路由类似页面时收到错误404: class vips_salepage(http.Controller): @http.route('/salepage/<filialpage>', type='http', auth="public", website=True) def page(self, filialpage, **kw): cr, uid, context, registry = request.cr, request.uid, request.c

尝试在Odoo8中路由类似页面时收到错误404:

class vips_salepage(http.Controller):
@http.route('/salepage/<filialpage>', type='http', auth="public", website=True)
def page(self, filialpage, **kw):
    cr, uid, context, registry = request.cr, request.uid, request.context, request.registry

    # here my code

    return http.request.render('vips_shop.indexpage2', result)

@http.route('/salepage/', type='http', auth="public", website=True)
def page(self, **kw):
    cr, uid, context, registry = request.cr, request.uid, request.context, request.registry

    # here my code

    return http.request.render('vips_shop.filial_list_page', result)
/salepage/filialname显示正常

在奥多v9中,所有工作正常在奥多v8中,我不能同时使用两条路线


为什么会发生这种情况?

问题已成功解决。
不同路由下的同一方法名出错

问题已成功解决。 不同路由下的同一方法名出错

@http.route('/salepage/', type='http', auth="public", website=True)
def page(self, **kw):
    cr, uid, context, registry = request.cr, request.uid, request.context, request.registry

    # here my code

    return http.request.render('vips_shop.filial_list_page', result)