diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-04-23 09:31:13 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-04-23 11:50:59 +0000 |
| commit | baf1c1406bcf148885fc40a9a050731bf4402f75 (patch) | |
| tree | 47ddbcaf20ac5df172c787f05ca57795d2f80b13 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | fd71bef29ac00cdc6474320cd90086f0ccdad455 (diff) | |
[FIX] base: do not skip ACL and record rules
- Create 2 companies C1 and C2
- Install any module with access rules, e.g. `account`
- Create an invoice in C1, attach a document
- Switch to C2
- Go to Settings > Technical > Attachments
An `AccessError` is raised.
This happens because the `_search` skips the ACL and record rules for a
system user, while they should only be skipped for the superuser.
opw-2236561
closes odoo/odoo#50067
X-original-commit: 9a71d60c25804bc4bae8c2c680c537f8a7a0900f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
