summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-09-21 23:42:45 +0200
committerOlivier Dony <odo@openerp.com>2017-09-21 23:42:45 +0200
commitbb0404ea30af6aefc40d9ea92801dcf314bcb9f9 (patch)
treea956f9dbe01bd426c33a220f0da4d31cf13c1019 /addons/web/controllers
parent5c51a0ad4d6bfab6427949ffe61650196798846a (diff)
[IMP] website_mail: simplify helpers for external post
After removing the `sha_in` params a while ago, we get rid of the deprecated `token_field` option. - Make `token_field` a model attribute, so that each model can easily define the token field that should be used, and it does not need to be passed around all the time anymore. - Rename `_special_access_object()` to `_has_token_access()`, much more readable since it returns a bool - Do not forward the `attachment_ids` keyword arg to message_post, as it sometimes contains unrelated IDs (the helper is not meant to post attachments anyway) - Update callers accordingly
Diffstat (limited to 'addons/web/controllers')
0 files changed, 0 insertions, 0 deletions