From d0ca2d115e8b40308e1ff83bf9e7cc874762fbff Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 22 Nov 2016 12:04:09 +0100 Subject: [REF] ir_config_parameter: remove `group_ids` and simplify Add `sudo()` to call `get_param` where necessary, and make the web client use a controller instead of directly accessing parameters. --- addons/payment_adyen/models/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/payment_adyen/models') diff --git a/addons/payment_adyen/models/payment.py b/addons/payment_adyen/models/payment.py index 75faabeaba4..b54adc58a9c 100644 --- a/addons/payment_adyen/models/payment.py +++ b/addons/payment_adyen/models/payment.py @@ -109,7 +109,7 @@ class AcquirerAdyen(models.Model): @api.multi def adyen_form_generate_values(self, values): - base_url = self.env['ir.config_parameter'].get_param('web.base.url') + base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') # tmp import datetime from dateutil import relativedelta -- cgit v1.2.3