summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
AgeCommit message (Collapse)Author
2017-12-05[FIX] web,*: time format from user's languageAlexandre Kühn
Before this fix, the chatter always showed dates of messages in military time format. This was not the expected behavior, as the user could have had customize the date and time format in the settings of the current language. Steps to reproduce the issue: 1. Set Odoo in English 2. Settings > Translations > Languages > English 2.1. Set Date Format to %m/%d/%Y 2.2. Set Time Format to %I:%M:%S %p 3. CRM > (Select any opportunity with at least one message) > Mouse hover on elapsed time (e.g. "an hour ago") Expected: - It shows the customized time format (e.g. 11/07/2017 5:33:36 PM) Results: - It shows the military time format (e.g. Tue Nov 07 2017 17:33:36 GMT+0100) opw-781647
2017-09-15[IMP] im_livechat, mail: Discuss UI in mobileAaron Bohy
- Extract mobile specific code for the client action to a specific file - Massive clean of less rules - Unify channels preview of the systray dropdown and the mobile UI of Discuss - Ensure to only load the last message of each channel in mobile, as this is not used in desktop (unless the user opens the systray menu) - Make livechat available in Discuss mobile UI
2017-09-15[IMP] mail: improve Discuss UI for mobile devicesDharmang Soni
- Brand new UI for Discuss client action (with tabs for Inbox, chats, channels...) - In mobile, conversations always open in Chat Windows - Chat window UI improved (both mobile and desktop) - Channels preview (used in the systray menu, and now in the mobile UI of Discuss) improved - Other minor less tweaks
2017-09-13[IMP] mail: pdf preview and small improvementKishan Gajjar
When you click on pdf it should show preview of pdf. Don't show the previous/next arrows if there is only one attachment.
2017-09-05[IMP] mail: Add a preview popup for attachmentsjpr-odoo
Purpose ======= The goal is that when you click on an attachment, you should get a preview of it and then you get the possibility to download it.
2017-09-05[REF] mail: review new chatter designqsm-odoo
- Use classes instead of repeated mixins - Add real user avatar instead of fake one - Reorganize LESS rules
2017-09-05[REF] mail: introduce new chatter/discuss designstefanorigano
- Improve overall design - Better use of UI colours - Replace planned activities icon - Vertically align kanban icons - Remove the 'bell shtcut' and followers caret - Use a mixin to style the chatter (inline, not inline, compact)
2017-05-17[IMP] discuss: action buttons always visible on touch screens Dhaval Panchal
We add the o_touch_device css class to the body (it was done in enterprise only), and various other small changes to make sure that the action buttons (in discuss, next to the message title) are always visible (not only on hover) when we are on a touch device. (pr (#15459, closes task 31208)
2016-10-05[FIX] mail: handle undefined customer_email_dataDenis Ledoux
`customer_email_data` can be undefined. It must therefore be checked before testing its length e.g. use the /helpdesk command with an anonymous visitor of the livechat opw-690301
2016-09-30[FIX][IMP] mail: make tracking great againThibault Delavallée
When changing tracking mecanism in v9 'always' tracked fields lost their meaning. They were managed like 'onchange' fields. This commit sets the old behavior back. * 'onchange' fields are displayed in tracking every time they change * 'always' fields are displayed in tracking every time they change or whenever other tracking exist; those are used to display some contextual information
2016-09-01[IMP] mail: improve notification management for customersThibault Delavallée
Currently it is impossible in Discuss to know whether an email has been sent to a customer and whether it failed or bounced. A notified partner has an entry in the needaction m2m table. In this commit we decorate this table to add fields about the email notification: is an email sent, did it failed, did it bounce. This information is kept only for customers. Internal users does not use this information. Moreover their notification is deleted once the message is read in the Chatter. This avoids having a notification table that grows quickly. Chatter now holds a new icon for email details. It allows to know on a thread status of emails sent to customers.
2016-06-08[FIX] mail: display date and datetime in tracking value with the right timzeone.Jeremy Kersten
When tracking value is converted to be rendered as a message_post, we convert the date/datetime with the current local from momentjs. Related to #12327 Courtesy of @aab-odoo for help and review.
2016-03-03[FIX] mail: only update timestamps periodicallyGéry Debongnie
the messages in a thread were previously rerendered every minutes to update their timestamps. This commit only update the timestamps, not all the message. This will allow us to keep expanded/folded state in messages without collapsing them every minutes. [IMP] mail: add read more/read less support client side Messages are cleaned up and tagged server sides, with a attribute data-o-mail-quote. This commit replace their content with a clickable read more link, which toggle its display.
2016-03-03[CLEAN] tools, mail: remove html_email_cleanThibault Delavallée
Remove html_email_clean in tools. Remove shorten in mail.
2016-02-11[FIX] mail: various ui improvementsGéry Debongnie
- swap reply-to and mark-as-unread buttons in threads - remove blockquote from stripped html in channel previews - readd padding to no-content message in threads, also to no match found message - add 1 to chat window z-index to prevent control panel buttons to show through it
2016-02-03[FIX] mail: users can now reply directly in documents from channelsGéry Debongnie
A missing feature in discuss was the possibility to directly reply to a message from a channel without opening the document. This commit add that feature. Now, there is a small 'reply' icon in channels (including inbox/starred) if the message comes from another document. This icon opens an extended composer, which will post the message in the document chatter.
2016-02-02[FIX] mail: keep expanded messages expanded after refreshAaron Bohy
Commit c04103f re-renders the thread every minute to update messages' date. As a consequence, the expanded messages are lost (they are shortened again). This rev. makes sure to keep those messages expanded.
2016-02-01[FIX] mail: don't notify 'join/left' messagesAaron Bohy
Messages of type 'notification' and whose model is 'mail.channel' are considered as 'system notifications'. This is the case of 'join/left' messages. They aren't taken into account when computing unread messages anymore. Also use the same heuristic to decide whether or not to display the message's star, so from now on pure notifications (not system notifications), like status change on a document, can be starred.
2016-01-15[FIX] mail: display block for message bodyGoffin Simon
The message body must be inside a tag div because when the message was short with a @author, there was no tag div around the body and it was displayed inine. opw:666840
2016-01-13[FIX] mail,web: : untranslated term in viewMartin Trigaux
_t(...) in xml qweb views do not work, not exported, not evaluted. No reason to use t-att-*, just using simple attribute is enough.
2015-12-11[FIX] mail: various UI improvements to chat interfaceGéry Debongnie
- don't display user name in chat windows - scroll to the new messages separator if it exists (in client action) - increase sidebar width - add correct link href in threads - hide chat window in mobile mode - mail: ignore o_mail_redirect or o_channel_redirect, but redirect anyway
2015-12-09[FIX] mail: various ui improvements/fixesAaron Bohy
- display full content of messages in Discuss - no content helpers in inbox and starred improved - mark as read tooltip instead of mark ad done - decrease font size in chat windows - increase chat windows dimensions - display avatars in chat windows - chat window background is now white - notes are displayed with a darker background
2015-12-07[IMP] mail: various improvementGéry Debongnie
- don't display subject for messages coming from chatter - better tooltip on the leave channel button in client action sidebar - don't squash nearby messages in chatter - reduce margin of date separator in chat windows
2015-12-03[FIX] mail: don't redirect to user's own partner form viewAaron Bohy
Clicking on the author of a message opens a DM with the corresponding user if there is one, and opens the corresponding partner's form view otherwise. When the author is the current user, obviously we don't want to open a DM with ourself, but we probably don't want to open our partner form view either, which was exactly the behavior before this rev.
2015-11-27[FIX] mail: various improvements/fixesGéry Debongnie
- display appropriate message when no results are found in a search - don't display 'you have been invited' notif when creating private channel - correctly join when a user was invited in a public channel - display a message when a user join a channel through an invitation - don't display subject for message of type notification (still a mystery why it happens in test.odoo.com for channel of type mailing) - better heuristic on when to display message subject - tweak sidebar text color (slightly whiter) - add ... to the placeholder of the text area in the composer - invert send and icons for attach/smiley in composer - don't display 'read less' on expanded messages - exclude livechat channels from channel mention suggestions
2015-11-26[FIX] mail, im_livechat: correctly displayed message dateGéry Debongnie
Messages are required to be displayed in a smarter way: relative to the current date, if it's a recent message, or absolute if not. This commits rework most of the date processing code to comply with these requirements. Messages were preprocessed each time a thread is rendered, which is stupid. It should be preprocessed only when the message is created. This was a small problem because livechat does not use the chat manager, so a simplified version of the preprocessing had to be done.
2015-11-18[FIX] mail: chatter: re-re-add the read more / lessThibault Delavallée
The read more / read less in chatter has been removed in the new timeline and then cleaned timeline introduced at cc6d2aa995ab13645627eae49ae462fbf2b038e8. This feature has been brought back at revision 486aab5098fd757dfad06e63b9f3bde51a78cb0e. However a new cleaning removed the feature at revision 2a5f07e0b919d4209c2cb72c6dfdc8b86cd5c7ff. This commit brings back this feature for the second time. Next one brings free cookies.
2015-11-18[FIX] mail: chatter: subtype when trackingThibault Delavallée
When having a tracking, the subtype description should be displayed. This is used for tracking linked to a subtype like Task Opened, Task Blocked, ... This feature was forgotten when refactoring the chatter for v9 and is now back.
2015-11-12[FIX] mail: various small UI tweaks/fixesGéry Debongnie
- put the mentionned partners and the attachment above the composer instead of below - debounce some links in thread.js to prevent double loading views when double-clicking - readd the # in front of the channelname of the title of the client action - give the channel_id to the thread in a chat window, so it does not display the channel name everytime it displays a message - correctly close dm chat window when the dm channel is closed in the main sidebar - simplify the help messages when a channel is empty
2015-11-12[IMP] mail: needactions and messages readAaron Bohy
Mainly concern the client action: - Display needactions per channels - For all channels except Inbox, clear needactions when opening the channel - Add snackbar to undo needactions clearing - Display a separator between read and unread messages in threads - Fix active channel (for Inbox and Starred) display in sidebar Various minor changes in chat_manager: - Code refactoring of bus notification handler - get_channel() don't fallback anymore on first channel
2015-11-09[FIX] mail: various ui improvementsGéry Debongnie
- display star/mark as read icon next to the message title instead on the far right - display unstar all message in channel starred - enable/disable the 'unstar all' and 'mark read' buttons depending on the number of messages in the corresponding channels - display star on the left sidebar in 'squashed messages' - tweaks to padding in client action - display hash in channel name in lighter tone - light opacity in sidebar - star icon in message sidebar is clickable + small less refactoring - message sidebar is aligned with the message now - messages are not squashed in inbox/starred
2015-11-06[IMP] mail: various ui improvementsGéry Debongnie
- less tweaks - improve default channel name - clean origin channel names in Inbox and Starred - reduce fadeout duration in threads
2015-11-03[IMP] mail: composer: mention channels featureAaron Bohy
Generalizes the mention mechanism to allow mentionning partners (@) and channels (#). When a user clicks on a mentionned channel, it subscribes to it and joins it. If the mention is in a chatter, the user is redirected to the Discuss client action. Moves the RPCs to get the menu and action id of the Discuss client action from systray.js to chat_managaer.js as they are now needed in the chatter as well. Also fixes the on_channel_clicked redirection for notification message (created/joined/left #channel). Those three messages are now of type notification, and correctly redirect on click.
2015-11-03[IMP] mail: various ui improvementsGéry Debongnie
- display hash before text in create channel input - increase limit for message fetching from 20 to 100 - 'Show more messages' renamed ino 'Show older messages' - remove border top and bottom on selected messages
2015-10-22[IMP] mail: add link to origin channel from messageGéry Debongnie
2015-10-22[IMP] mail: various ui improvementsGéry Debongnie
including: - reset scroll position to bottom when leaving channel - allow clicking on the avatar image - hide stars when message is of type notification - sort channel names - add # before channel names - rename Whole company channel in general - replace \n and \r in messages by <br/> - lighten the hover color of sidebar items in the client action - Display @ before mentions
2015-10-16[IMP] mail: redirect to DM on user clickedAaron Bohy
When clicking on a partner in the thread of messages, it opens the DM with the associated user if there is one (and if this user isn't the current user). Otherwise, or when clicking on a record of any other model, the user is redirected to that record's form view. This change required a minor change in chat_manager: create_channel now returns the created channel, as the client action needs it to switch to it. Moreover, in the thread, when there is no partner associated with a message (only an email address), we simply use html's mailto mechanism. This fixes a bug as we formerly tried to open an unexisting record of res.partner.
2015-10-16[IMP] mail: thread: hide avatar, author and date of consecutive messagesAaron Bohy
... from the same author, written within 1 minute (restricted to comments). Also: - Display stars and needactions on hover only - Display the date of messages without avatar and info in the margin on hover - Add 'selected' state of messages (mainly for touch screens to replace hover) - Fix typo (msg_type -> message_type) on the computation of the avatar url
2015-10-16[IMP] mail: various small ui improvementsGéry Debongnie
including: - decrease vertical spacing between user name and text - decrease vertical spacing between messages - align avatar width with first line of message - bold channels more visible (color is actually white) - decrease online status icon size and change its color - hide the DM unpin icon, and show it only when hovering - the add channel icons are less white - offline user icon is now white - the unpin icon is now visible when hovering on user name - correctly display notifications in inbox
2015-10-06[IMP] mail: thread: parameterize the display of messages' starAaron Bohy
To allow hiding it in livechat windows on the website.
2015-10-06[FIX] mail: thread: messages' date displayed in browser's timezoneAaron Bohy
2015-10-01[REF] mail: first part of the chat refactoring (client side)Aaron Bohy
Joint work with ged