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