diff options
| author | Joren Van Onder <jov@odoo.com> | 2015-09-21 14:56:21 +0200 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2015-09-22 09:22:40 +0200 |
| commit | 8a232e7f45eb52f6e5589ff1183d97bbd354cb7e (patch) | |
| tree | 855538d5e3ef3e7f0906a0b532b734cf2c660a2c /addons/web/static/src | |
| parent | 973b94bd8383136d467c36cb2fb0d020ddb1823f (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
