-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information
Showing
10 changed files
with
497 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.js_follow[data-follow='on'] .js_follow_btn , | ||
.js_follow[data-follow='off'] .js_unfollow_btn { | ||
display: none; | ||
} | ||
|
||
.o_website_mail_chatter { | ||
padding: 10px; | ||
|
||
.o_website_mail_avatar{ | ||
width: 45px; | ||
height: 45px; | ||
} | ||
|
||
.o_website_mail_header { | ||
margin-bottom: 15px; | ||
} | ||
|
||
.o_website_mail_composer { | ||
margin-bottom: 15px; | ||
} | ||
|
||
.o_website_mail_messages { | ||
margin-bottom: 15px; | ||
|
||
.o_website_mail_message_title { | ||
p { | ||
font-size:85%; | ||
color:@odoo-main-color-muted; | ||
margin: 0px; | ||
} | ||
} | ||
|
||
} | ||
|
||
.o_website_mail_pager { | ||
text-align: center; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.