[FIX] website_payment, website_mail: fix route declaration typo

Missing s of method for allowed methods.
This commit is contained in:
Jeremy Kersten
2016-01-28 14:00:26 +01:00
parent ca343f7b04
commit 28e2dcf043
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ class WebsiteMail(http.Controller):
except Exception:
return False
@http.route(['/website_mail/post/post'], type='http', method=['POST'], auth='public', website=True)
@http.route(['/website_mail/post/post'], type='http', methods=['POST'], auth='public', website=True)
def chatter_post(self, res_model='', res_id=None, message='', redirect=None, **kw):
res_id = int(res_id)
url = request.httprequest.referrer
+1 -1
View File
@@ -18,7 +18,7 @@ class website_payment(http.Controller):
acquirer.form = acquirer.sudo()._registration_render(request.env.user.partner_id.id, {'error': {}, 'error_message': [], 'return_url': '/my/payment_method', 'json': False, 'bootstrap_formatting': True})[0]
return request.website.render("website_payment.pay_methods", values)
@http.route(['/website_payment/delete/'], method=['POST'], type='http', auth="user", website=True)
@http.route(['/website_payment/delete/'], methods=['POST'], type='http', auth="user", website=True)
def delete(self, delete_pm_id=None):
if delete_pm_id:
pay_meth = request.env['payment.method'].browse(int(delete_pm_id))
@@ -29,7 +29,7 @@ class WebsiteMailController(WebsiteMail):
})
return message_data
@http.route(['/website_mail/post/post'], type='http', method=['POST'], auth='public', website=True)
@http.route(['/website_mail/post/post'], type='http', methods=['POST'], auth='public', website=True)
def chatter_post(self, res_model='', res_id=None, message='', redirect=None, **kw):
params = kw.copy()
params.pop('rating')