From 4f4ee677131b3128a065d3cb2a4a98541b0616fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Wed, 26 Aug 2020 19:48:43 +0200 Subject: [PATCH] [FIX] b_w_shift: Missing sudo() to get parameter --- beesdoo_website_shift/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_website_shift/controllers/main.py b/beesdoo_website_shift/controllers/main.py index 82efd8d..d2de44e 100644 --- a/beesdoo_website_shift/controllers/main.py +++ b/beesdoo_website_shift/controllers/main.py @@ -433,7 +433,7 @@ class WebsiteShiftController(http.Controller): # Get config regular_next_shift_limit = request.website.regular_next_shift_limit shift_period = int( - request.env["ir.config_parameter"].get_param( + request.env["ir.config_parameter"].sudo().get_param( "beesdoo_website_shift.shift_period" ) )