-
- Downloads
[FIX] point_of_sale: don't automatically open the frontend from workflow
It was preventing pos managers from opening sessions for pos users. Because pos users cannot open their own sessions, this means they couldn't do anything anymore. The reason for it is that the open frontend function checks whether or not the opened session belongs to the current user. If it doesn't, it throws a UserError, which prevents the session from being created. That's all open_frontend_cb did when called from wkf_action_open anyway, because the action it returns just gets ignored in the workflow. This also removes the validate & open session button because the only reason not to use the new dashboard to create a session is when you want to create a session for a different user. When doing that, validating and opening the session yourself makes no sense. When people do want to create a session for themselves without using the dashboard they can still do so, they will just have to save the session form and then click on the continue selling button.
Please register or sign in to comment