[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
This commit is contained in:
Christophe Matthieu 2014-01-08 15:23:15 +01:00
parent 372b52b044
commit d5bcb3b947
2 changed files with 3 additions and 7 deletions

View File

@ -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', '')

View File

@ -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();