Files
odoo_source/addons
Luis González 45dce9ce00 [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#58304

X-original-commit: 0bf30e1b5907997ae22d27cc420c3533940d634f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-23 09:39:38 +00:00
..
2020-09-01 12:57:58 +00:00
2020-09-23 08:47:00 +00:00
2020-08-21 09:38:26 +00:00
2020-09-01 11:18:00 +00:00
2020-09-17 10:00:16 +00:00
2020-09-15 08:11:44 +00:00
2020-09-01 11:18:00 +00:00
2020-09-22 18:51:18 +00:00