summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable
diff options
context:
space:
mode:
authorFanny He <fah@odoo.com>2019-07-24 08:56:01 +0000
committerNans Lefebvre <len@odoo.com>2019-07-24 15:18:26 +0000
commitd01f3865b50f2e0724a437c893e0782551d729a0 (patch)
treef12403db49926c59dcf8b3d415171c7b2caf3bd6 /addons/web/static/lib/jquery.mjs.nestedSortable
parentcc32b7d1b396a42dd4575c681ceb422f99b6015a (diff)
[FIX] mail: allow to notify a user currently in another company
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>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions