From 0645875fb0ea5ee831fa1f3c5e930a598c96ef41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Mon, 25 Mar 2019 11:48:23 +0100 Subject: [PATCH] [FIX] b_w_shift: status_id not found --- 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 c37c3ec..84bbec4 100644 --- a/beesdoo_website_shift/controllers/main.py +++ b/beesdoo_website_shift/controllers/main.py @@ -130,7 +130,7 @@ class WebsiteShiftController(http.Controller): if (irregular_enable_sign_up and self.user_can_subscribe() and shift - and shift.status_id == open_status + and shift.stage_id == open_status and not shift.worker_id): shift.worker_id = cur_user.partner_id request.session['success'] = True