[FIX] website_event: add route alias /events

Having as URL /event (not plural), for the list
of events, is not really user friendly.

opw-644476
This commit is contained in:
Denis Ledoux
2015-07-10 10:11:54 +02:00
parent 2d581cd665
commit fc09d3755a
+1 -1
View File
@@ -14,7 +14,7 @@ from openerp.tools.translate import _
class website_event(http.Controller):
@http.route(['/event', '/event/page/<int:page>'], type='http', auth="public", website=True)
@http.route(['/event', '/event/page/<int:page>', '/events', '/events/page/<int:page>'], type='http', auth="public", website=True)
def events(self, page=1, **searches):
cr, uid, context = request.cr, request.uid, request.context
event_obj = request.registry['event.event']