summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
AgeCommit message (Collapse)Author
2018-04-06[IMP] mail: attachments list designstefanorigano
With this commit, the attachments displayed in a thread (typically a chatter) are properly styled.
2018-04-05[IMP] mail: document_viewer, add reset zoom buttonstefanorigano
2018-04-05[IMP] mail: document_viewer, improve design and fixesstefanorigano
- Improve design - LESS: use mixing and variables when possible, code formatting - Solve a minor issue causing images to be not perfectly centered - Improve visual feedbacks (tooltips, cursors, hover states...)
2018-03-30[IMP] mail: Discuss: load older messages automaticallydbh
After this rev., in Discuss, messages are automatically loaded when the user scrolls to the top of the channel. Task 33958 Co-authored-by: Aaron Bohy <aab@odoo.com>
2018-03-21[MERGE] forward port branch saas-11.2 up to 500e3f49705Christophe Simonis
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-19[FIX] mail: fix chatter document link 'on <doc name>' including the 'on'Thibault Delavallée
Having the 'on' using the same styling of the document name that is a link make us think the 'on' is part of the name. Let us fix this small issue by getting the 'on' out of the link tag.
2018-03-14[REM] mail: remove o_mail_note class in chatterThibault Delavallée
Purpose of this commit is to clean a bit various classes and conditions. First clean is the removal of o_mail_note class in activities less. It comes from first implementation of activity widget and is not used anymore in activity widgets rendering. Second clean is the removal of o_mail_note class when displaying messages. Only o_mail_discussion is used currently in chatter to make a different background depending on whether the message is a discussion or not. All we have to know to differentiate message display is whether it is a discussion done by an user or not. Tests have been updated to use o_mail_discussion class triggered by the message being a discussion, aka a comment posted by an user.
2018-03-08[FIX] mail: nocontent helper discuss (inbox & starred)Alexandre Kühn
Revision on https://github.com/odoo/odoo/commit/a87d761fdbf345ada5dc93e0a686b08a0f5a0417 From the UX/UI changes above, we also changed the style for empty inbox and starred in Discuss. There are two issues with the empty boxes message: 1. The text is not centered at all (one word per line, and everything is stuck on the left-side of the screen) 2. The style is inconsistent with nocontent message on search In this commit, inbox and starred use the same style as the no_content message from a search. The style of the nocontent from a search has been slightly changed to mimick the intended style for inbox and starred: - centered text - title is in bold 125% font size - other text is not in bold, 115% font size.
2018-03-07[MERGE] forward port branch 11.0 up to d67b410dfcdChristophe Simonis
2018-03-02[FIX] mail: Check if attachment has mimetypetbe-odoo
- Check if the attachment has a mimetype before trying to split its value.
2018-03-01[MERGE] forward port branch 11.0 up to c2e878e34c8Christophe Simonis
2018-02-26[FIX] mail: rotate image in previewNicolas Martinelli
When uploading an image as attachment, the document viewer doesn't support the EXIF data. Therefore, a picture taken with a non-zero angle will not appear with the right orientation (preview or full-size image). Unfortunately, supporting EXIF data is not trivial in Python or JavaScript without external libraries. Therefore, we add a rotate button which allows the user to rotate the image by 90°. Moreover, we add the `image-orientation: from-image` CSS property, which is only supported by Firefox. opw-1814407
2018-02-16[FIX] web,*: various nocontent helper fixesAlexandre Kühn
* account, board, hr_holidays, mail, sale, website_sale Small fixes on nocontent onboarding screens. Initial commit: https://github.com/odoo/odoo/commit/a87d761fdbf345ada5dc93e0a686b08a0f5a0417 Details: - list: centered; - pivot/graph: centered + empty folder face; - Dashboard app with nocontent helper; - Discuss inbox/starred: centered without neutral/smiling faces; => no faces because it's too much with animated rainbow man when emptying the any of the boxes. - hr_holidays: fixed onboarding screens; - (technical) dropped obsolete 'o_view_nocontent_container' style; - manual reconciliation 'nothing to reconcile': centered + inside form sheet; => renamed account's o_view_nocontent to o_view_noreconciliation, so that it doesn't use the style of views.less. - kanban: nocontent helper above the columns (if any); - texts "no order to upsell"/"abandonned cart" paragraph split in two.
2018-01-30[IMP] chatter: improve chatter readabilityXavier-Do
Only messages as comments and email template should keep a white backround since they are not internal. It is also enough to display fields that changed on subtypes (update message) since emails will be reworked soon and more information will be given there. The support of 'always' track can be removed. (is now considered as a simple tracked field) The use of self.env.ref('mail.mt_comment').id add some query and the performance tests needs to be update since message_format is called by notify_by_chat. This code will be refactor later
2018-01-19[REV] Miss pushXavier-Do
This reverts commit 935e4f6a252ecd87d660d8433aa88fee41839fff.
2018-01-19Task: [mail] clean chatter.Xavier-Do
Remove "always" tracking support Change greay background logic
2018-01-18[IMP] core: menu tip ux/ui improvementAlexandre Kühn
We would like to make the "no item found" screens more appealing. Before this commit, it shows a small help tip in the top-left corner of the screen, just below the "Create" button. With this commit, these help tips have been replaced by onboarding screens, which consist of a picture and some text below, both of which are horizontally centered. The texts have been slightly changed, so that they are shorter and clearer. Considered modules: (A) account, account_asset, account_budget, account_test, account_voucher, analytic (B) barcodes, base, base_automation, board (C) calendar, contacts, crm (D) delivery (E) event (F) fleet (G) gamification, google_drive (H) hr, hr_attendance, hr_contract, hr_expense, hr_gamification, hr_holidays, hr_payroll, hr_recruitment, hr_timesheet (I) im_livechat (L) l10n_fr_sale_closing, link_tracker, lunch (M) mail, maintenance, mass_mailing, membership, mrp (N) note (P) payment, point_of_sale, post_mercury, pos_restaurant, product, project, purchase, purchase_requisition (R) rating, repair, resource (S) sale, sale_timesheet, sales_team, stock, stock_account, stock_landed_costs, stock_picking_batch, survey (U) utm (W) web, website, website_blog, website_customer, website_event_track, website_forum, website_quote, website_sale, website_sale_digital, website_slides
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