d01f3865b50f2e0724a437c893e0782551d729a0
In particular, the problem forbids a user to lower quantities on a SO if the responsible is currently in another company. - Install sale_stock and sale - Activate Multi-companies - Create Company A and Company B - Admin in A and B - Other user U (e.g. duplicate of Admin) in B only - U creates a SO with a product, confirms it - Admin connects to Company A - U decreases product_uom_qty in a line - U gets an AccessError When decreasing the quantity, in sale_stock, _log_decrease_ordered_quantity is called and calls stock's _log_activity, that needs access to the responsible or the superuser's partner. If that user is in another company, this raises an AccessError. Because it is when accessing the partner that the AccessError is raised, we cannot cleanly use a check_access_rule to determine when to use sudo. OPW 2036879 closes odoo/odoo#35132 Signed-off-by: Nans Lefebvre (len) <len@odoo.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%