Browse Source

Merge branch '9.0' into cannot_create_worker_on_shift

pull/63/head
Nicolas Jamoulle 6 years ago
committed by GitHub
parent
commit
580eab3422
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beesdoo_website_shift/controllers/main.py

2
beesdoo_website_shift/controllers/main.py

@ -130,7 +130,7 @@ class WebsiteShiftController(http.Controller):
if (irregular_enable_sign_up if (irregular_enable_sign_up
and self.user_can_subscribe() and self.user_can_subscribe()
and shift and shift
and shift.status_id == open_status
and shift.stage_id == open_status
and not shift.worker_id): and not shift.worker_id):
shift.worker_id = cur_user.partner_id shift.worker_id = cur_user.partner_id
request.session['success'] = True request.session['success'] = True

Loading…
Cancel
Save