From d5bcb3b94704a31b2d69ed852d477185d94d532e Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 8 Jan 2014 15:23:15 +0100 Subject: [PATCH] [FIX] website/payment_acquirer: payment/adyen/return: Add pspReference attribute in the route method to force to have this arguments and hide this url from the sitemap bzr revid: chm@openerp.com-20140108142315-nyaleejvpugfygew --- addons/payment_acquirer_adyen/controllers/main.py | 5 +++-- addons/website/static/src/js/website.snippets.editor.js | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/payment_acquirer_adyen/controllers/main.py b/addons/payment_acquirer_adyen/controllers/main.py index 2ea9fb00c51..f1f15bddf8d 100644 --- a/addons/payment_acquirer_adyen/controllers/main.py +++ b/addons/payment_acquirer_adyen/controllers/main.py @@ -20,8 +20,9 @@ class AdyenController(http.Controller): @website.route([ '/payment/adyen/return/', ], type='http', auth='public') - def adyen_return(self, **post): - """ Paypal IPN. """ + def adyen_return(self, pspReference, **post): + """ Paypal IPN.""" + post["pspReference"] = pspReference _logger.info('Beginning Adyen form_feedback with post data %s', pprint.pformat(post)) # debug request.registry['payment.transaction'].form_feedback(request.cr, request.uid, post, 'adyen', context=request.context) return_url = post.pop('return_url', '') diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 33f38eaa6b4..bbf63f742cb 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1294,11 +1294,6 @@ this.$target.css("background-image", ""); this.$target.removeClass(this._class); }, - getSize: function () { - this._super(); - //this.grid.size = null; - return this.grid; - }, load_style_options : function () { this._super(); $(".snippet-style-size li[data-class='']").remove();