[FIX] Fix route of controller to post a comment from a product page

bzr revid: jke@openerp.com-20140307103038-rc5rdaa7ottpjgz1
This commit is contained in:
Kersten Jeremy
2014-03-07 11:30:38 +01:00
parent 590b50f548
commit e8e1cf2d2f
+1 -1
View File
@@ -302,7 +302,7 @@ class Ecommerce(http.Controller):
}
return request.website.render("website_sale.product", values)
@http.route(['/shop/product/comment'], type='http', auth="public", methods=['POST'], website=True)
@http.route(['/shop/product/<int:product_template_id>/comment'], type='http', auth="public", methods=['POST'], website=True)
def product_comment(self, product_template_id, **post):
cr, uid, context = request.cr, request.uid, request.context
if post.get('comment'):