diff options
| author | Pierre Masereel <pim@odoo.com> | 2019-08-06 11:30:20 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2019-08-07 07:49:52 +0000 |
| commit | 29db04e8aff841daafc9821871d9c24c8472994d (patch) | |
| tree | 4c5605dc66691e7849cef95123d49d7c52ae1eca /addons/web/static/src/js | |
| parent | 5fa3b433064f736ed87ba928ca1015cb26ac1ed7 (diff) | |
[FIX] point_of_sale: multi company opening session
When you are lanching a POS session in multi-company, the allowed
companies in the user context when you open the route '/pos/web' are the
ones taken from your cookies which are the last thicked in any of your
tab.
So if you have a tab in company one, then open a new one and thick
company 2, the values in your cookies will be company 2. The you go back
in tab 1 and open a POS, when you'll arrive in the main controller,
you'll have a company 2 in allowed companies even if you are opening a
session which is in company 1.
So we are searching in the session with a sudo, as there is only one
session/user, and then we pass the company of the session into the
allowed_companies in session user_context for the frontend.
closes odoo/odoo#35487
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
