summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-03-06 10:34:00 +0000
committerSébastien Theys <seb@odoo.com>2020-03-06 16:15:43 +0000
commitad5454f0ef285c304590a6f7aae9f0634f280ae7 (patch)
tree640dca0cc95536bcd1978d4657f50c3cd2f65a7c /addons/web/static/src/js/views/basic
parentb9e1f0d700d024ffefeaefb8aaedcb9bae04354b (diff)
[IMP] mail, test_mail: simplify attachment
in `_message_read_dict_postprocess`. This makes the method easier to follow and does not increase the query count. It actually reduces it when the attachment data were already in the cache, by not always reading them again. The `has_access_to_model` is removed and replaced by `sudo` because: - from portal everything is sudo so it's pointless to check access on top of it - from backend, it's almost impossible to trigger the case, and it's not like returning is_main True would leak any sensitive information to an employee Part of task-2180311 PR: #43841
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions