summaryrefslogtreecommitdiff
path: root/addons/payment_sips
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_sips
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_sips')
-rw-r--r--addons/payment_sips/models/payment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_sips/models/payment.py b/addons/payment_sips/models/payment.py
index 3f2087e5940..3e464fde64f 100644
--- a/addons/payment_sips/models/payment.py
+++ b/addons/payment_sips/models/payment.py
@@ -68,7 +68,7 @@ class AcquirerSips(models.Model):
def sips_form_generate_values(self, values):
self.ensure_one()
- base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
+ base_url = self.get_base_url()
currency = self.env['res.currency'].sudo().browse(values['currency_id'])
currency_code = CURRENCY_CODES.get(currency.name, False)
if not currency_code: