1
URL沒有發現我有控制器路線:Odoo:如果沒有權威性
@http.route(['/report/yandex_phone_report'], type='http', auth="public", website=True)
def yandex_phone_report(self, **kw):
page_data = []
return http.request.render(self._report_index_page_template, {
'page_items': page_data
如果我在URL /報告記錄/ yandex_phone_report顯示的罰款。 如果我沒有在URL /報告loged/yandex_phone_report將返回404:
2017-08-02 16:46:09,400 5942 INFO ? werkzeug: 127.0.0.1 - - [02/Aug/2017 16:46:09] "GET /report/yandex_phone_report HTTP/1.1" 404 -
瀏覽器顯示此:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
我怎樣才能解決呢?爲什麼路線不起作用?