summaryrefslogtreecommitdiff
path: root/addons/website_mail/static/src/xml/chatter_message.xml
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2016-12-26 11:32:25 +0100
committerJérome Maes <jem@openerp.com>2017-06-30 11:06:32 +0200
commitd79678fdd5faccffff65a439653fa5d639a3d3c4 (patch)
tree7cb3f4a849289dbae3983daefea02c6cbbd21467 /addons/website_mail/static/src/xml/chatter_message.xml
parent890e665b882b27184003cc5de6ad365f2910815d (diff)
[IMP] website_mail: make the frontend chatter lazy
Message are now fetched and display using javascript to optimize performance. Also the chatter is completely rewrite : add pager, filter possiblity, ... This commit is mainly technical: posting feature does not change. Only the display with pager is new. The goal is also to prepare frontend chatter for a better integration with rating widget. The mail.thread mixin is extended to manage the field website_message_ids (display all messages that can be seen on frontend by user (employee or not). When fetching or posting message, a check is done to see if we need to do it as sudo(). website_mail implement posting messages with token or sha_in (using in website_quote). The same verification is now done when fetching messages, via '_special_access_object' method.
Diffstat (limited to 'addons/website_mail/static/src/xml/chatter_message.xml')
-rw-r--r--addons/website_mail/static/src/xml/chatter_message.xml15
1 files changed, 0 insertions, 15 deletions
diff --git a/addons/website_mail/static/src/xml/chatter_message.xml b/addons/website_mail/static/src/xml/chatter_message.xml
deleted file mode 100644
index 111f9877d7a..00000000000
--- a/addons/website_mail/static/src/xml/chatter_message.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<templates id="template" xml:space="preserve">
- <t t-name="website_mail.thread_message">
- <li class="media" t-att-id="'message-' + id">
- <div class="media-body">
- <img class="media-object pull-left img-circle" t-att-src="image_url" style="width: 50px; margin-right: 10px;"/>
- <div class="media-body">
- <h5 class="media-heading">
- <span t-esc="author"/> <small>just now</small>
- </h5>
- <div t-raw="body"/>
- </div>
- </div>
- </li>
- </t>
-</templates> \ No newline at end of file