29db04e8aff841daafc9821871d9c24c8472994d
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>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%