diff options
| author | Toufik Ben Jaa <tbe@odoo.com> | 2019-08-21 15:03:02 +0000 |
|---|---|---|
| committer | Toufik Ben Jaa <tbe@odoo.com> | 2019-08-21 15:03:02 +0000 |
| commit | a2c52e9efd5f97aea56b997f015862840fb0f55e (patch) | |
| tree | 4dea9b1b1d52594ab8833b887938605e498bb46a /addons/event_sms/data/sms_data.xml | |
| parent | 0fe9a9ddd1946588f298f25e13fc5472ef17474d (diff) | |
[FIX] stock: remove a useless `with_user`
- Before the change of `sudo` and `with_user` the code was non sense, it
was doing a `self.sudo(self._uid).check_access_rights('read')` which
was doing nothing.
But now with `with_user`, doing a `self.with_user(self._uid).check_access_rights('read')` breaks the
flag `superuser`.
Meaning that if the code was called using `sudo` it was bypassing the
ACL tests.
closes odoo/odoo#35896
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/event_sms/data/sms_data.xml')
0 files changed, 0 insertions, 0 deletions
