summaryrefslogtreecommitdiff
path: root/addons/payment_adyen
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-10-30 13:50:18 +0000
committerfw-bot <otis@odoo.com>2019-10-31 12:33:56 +0000
commit6d2d30d6f53128a698c99bc2da97d50dbe5fc27f (patch)
tree3fc5c4ab74c51635a437d448045d047083b86db0 /addons/payment_adyen
parentc40e06fd3906c8d86612b88cea250ffcaf15bd68 (diff)
[FIX] payment_*: multiwebsite base_url
Fine-tunning of 937b5c076e7175bec664ed0cf4b77505e342f1e2 Have a multiwebsite setup have a payment installed for one of the two websites Make an order on that website and try to pay Before this commit, the transaction doesn't come back to odoo's payment success controller This was because the return url was set to the web base url ICP After this commit, the payment success page is opened as we took the request's url as the return url opw-2080352 closes odoo/odoo#39643 X-original-commit: a9fb15b33fd041ee420581a5ba450017db06e0c7 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons/payment_adyen')
-rw-r--r--addons/payment_adyen/models/payment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_adyen/models/payment.py b/addons/payment_adyen/models/payment.py
index 584e28ab4a0..b1dce04c050 100644
--- a/addons/payment_adyen/models/payment.py
+++ b/addons/payment_adyen/models/payment.py
@@ -147,7 +147,7 @@ class AcquirerAdyen(models.Model):
return base64.b64encode(hmac.new(key, sign, hashlib.sha1).digest())
def adyen_form_generate_values(self, values):
- base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
+ base_url = self.get_base_url()
# tmp
import datetime
from dateutil import relativedelta