[IMP] website: server actions allow trailing paths

This commit is contained in:
Antony Lesuisse 2015-03-18 13:10:07 +01:00
parent 489a96c257
commit 7dbd495985
1 changed files with 4 additions and 1 deletions

View File

@ -403,7 +403,10 @@ class Website(openerp.addons.web.controllers.main.Home):
#------------------------------------------------------
# Server actions
#------------------------------------------------------
@http.route('/website/action/<path_or_xml_id_or_id>', type='http', auth="public", website=True)
@http.route([
'/website/action/<path_or_xml_id_or_id>',
'/website/action/<path_or_xml_id_or_id>/<path:path>',
], type='http', auth="public", website=True)
def actions_server(self, path_or_xml_id_or_id, **post):
cr, uid, context = request.cr, request.uid, request.context
res, action_id, action = None, None, None