Browse Source

[FIX] b_w_shift: Missing sudo() to get parameter

pull/169/head
Rémy Taymans 4 years ago
parent
commit
4f4ee67713
  1. 2
      beesdoo_website_shift/controllers/main.py

2
beesdoo_website_shift/controllers/main.py

@ -433,7 +433,7 @@ class WebsiteShiftController(http.Controller):
# Get config # Get config
regular_next_shift_limit = request.website.regular_next_shift_limit regular_next_shift_limit = request.website.regular_next_shift_limit
shift_period = int( shift_period = int(
request.env["ir.config_parameter"].get_param(
request.env["ir.config_parameter"].sudo().get_param(
"beesdoo_website_shift.shift_period" "beesdoo_website_shift.shift_period"
) )
) )

Loading…
Cancel
Save