From 6d2d30d6f53128a698c99bc2da97d50dbe5fc27f Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Wed, 30 Oct 2019 13:50:18 +0000 Subject: [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) --- addons/payment_authorize/models/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/payment_authorize') diff --git a/addons/payment_authorize/models/payment.py b/addons/payment_authorize/models/payment.py index e7be116700d..93403af7104 100644 --- a/addons/payment_authorize/models/payment.py +++ b/addons/payment_authorize/models/payment.py @@ -84,7 +84,7 @@ class PaymentAcquirerAuthorize(models.Model): if values.get('billing_partner_country') and values.get('billing_partner_country') == self.env.ref('base.us', False): billing_state = values['billing_partner_state'].code if values.get('billing_partner_state') else '' - base_url = self.env['ir.config_parameter'].get_param('web.base.url') + base_url = self.get_base_url() authorize_tx_values = dict(values) temp_authorize_tx_values = { 'x_login': self.authorize_login, -- cgit v1.2.3