[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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user