summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/model/model_field_command.js
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2020-09-18 00:26:39 +0000
committerNicolas Martinelli <nim@odoo.com>2020-09-23 09:13:50 +0000
commit40e4bfba8460137d159005d4d43fc081b9a4a85a (patch)
tree6e74f09c7c00d448cd6f6160f8c3dedbf296fd14 /addons/mail/static/src/model/model_field_command.js
parentb14694bc679280e99caad04676668462f4e8bdb2 (diff)
[FIX] sale: Access error when user as accounting access but not sale
If an user that only has access to accounting but not to sale, tries to validate an invoice created from a sale order, an access error will be raised. That's because, when the invoice status changes, the invoiced quantity on the related sale order is recomputed using the current user, which may not have access to read sale order lines. This commit fixes the above by ensuring the recomputation is performed with superuser access rights. closes odoo/odoo#58298 X-original-commit: 0bf30e1b5907997ae22d27cc420c3533940d634f Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/model/model_field_command.js')
0 files changed, 0 insertions, 0 deletions