summaryrefslogtreecommitdiff
path: root/addons/portal/static/src/xml
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/portal/static/src/xml
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/portal/static/src/xml')
-rw-r--r--addons/portal/static/src/xml/portal_chatter.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/portal/static/src/xml/portal_chatter.xml b/addons/portal/static/src/xml/portal_chatter.xml
index c4cfca119e0..71a7088c3cc 100644
--- a/addons/portal/static/src/xml/portal_chatter.xml
+++ b/addons/portal/static/src/xml/portal_chatter.xml
@@ -35,7 +35,6 @@
<input type='hidden' name="token" t-att-value="widget.options['token']" t-if="widget.options['token']"/>
<input type='hidden' name="sha_in" t-att-value="widget.options['sha_in']" t-if="widget.options['sha_in']"/>
<input type='hidden' name="sha_time" t-att-value="widget.options['sha_time']" t-if="widget.options['sha_time']"/>
- <input type='hidden' name="token_field" t-att-value="widget.options['token_field']" t-if="widget.options['token_field']"/>
<div class="alert alert-danger mt8 mb0 o_portal_chatter_composer_error" style="display:none;">
Oops! Something went wrong. Try to reload the page and log in.
</div>