Skip to content

Commit ae60f53

Browse files
committed
[FIX] *: fix typo in route kw
The common mistake of method instead of method leads to the parameter being ignored. A warning will be added in master closes odoo#71537 X-original-commit: c38a963 Signed-off-by: Olivier Dony (odo) <[email protected]> Signed-off-by: Martin Trigaux (mat) <[email protected]>
1 parent 2a8f777 commit ae60f53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/payment_ingenico/controllers/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class OgoneController(http.Controller):
2323
'/payment/ogone/decline', '/payment/ogone/test/decline',
2424
'/payment/ogone/exception', '/payment/ogone/test/exception',
2525
'/payment/ogone/cancel', '/payment/ogone/test/cancel',
26-
], type='http', auth='public', csrf=False, method=['GET', 'POST'])
26+
], type='http', auth='public', csrf=False)
2727
def ogone_form_feedback(self, **post):
2828
""" Handle both redirection from Ingenico (GET) and s2s notification (POST/GET) """
2929
_logger.info('Ogone: entering form_feedback with post data %s', pprint.pformat(post)) # debug

addons/portal_rating/controllers/portal_rating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class PortalRating(http.Controller):
99

10-
@http.route(['/website/rating/comment'], type='json', auth="user", method=['POST'], website=True)
10+
@http.route(['/website/rating/comment'], type='json', auth="user", methods=['POST'], website=True)
1111
def publish_rating_comment(self, rating_id, publisher_comment):
1212
rating = request.env['rating.rating'].search([('id', '=', int(rating_id))])
1313
if not rating:

0 commit comments

Comments
 (0)