summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/scss
AgeCommit message (Collapse)Author
2019-04-12[MOV/IMP] web, mail: update attachment widget and moved the common scss code ↵jpr-odoo
from mail to web with this commit, we have updated the attachment widget view same as like chatter attachment view moved the common scss code from mail to web for many2many_binary widget, which is used for attachment and update test case according to the widget Task ID: 1930087
2019-04-15[IMP] mail: improve document chat windowPrakash Prajapati
1. In the systray messaging menu, when hovering on a notification linked to a document chat, it now shows an "expand" icon. Clicking on icon opens the corresponding form view with the chatter. 2. Messages in a document chat window no longer show linked document in their header, as this is redundant with title of chat window. 3. Font size of words "on" and "from" in header of message in chat windows have been reduced in order to closely match font size of document link. Task-ID 1929169 closes odoo/odoo#30957 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-04-12[MERGE] forward port branch saas-12.3 up to 120359bf0c9Christophe Simonis
2019-04-10[IMP] mail: chat window send messagePierre Paridans
On a chat window on mobile, the keyboard can be closed by clicking in the conversation, then there's no way to send your message. This commit add a "send" icon in the input, after emoji and attachments icon. Actually the button was already present on mobile but hidden because of the class o_composer_button_send (used for multiple "send" buttons). This is fixed by restricting the hidding only to the desired button. It also removes an unused 1px top/bottom margin on the thread composer (wasn't visible as the buttons' background color is the same as their parent's background). Finally applying the brand-primary text color on the "send" button only when not being in a "mini composer" mode instead of globally. Task ID: 1943863 closes odoo/odoo#32568 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-04-10[MERGE] forward port branch saas-12.2 up to 2694174b410Christophe Simonis
2019-04-08[FIX] mail: chatter's button alignment and composer width on mobilePierre Paridans
Buttons "Send message / Log note / Activity" are on two lines instead of one. In addition there is a 1px glitch on the attachment icon. Also long attachment name on tiny screens (i.e. iPhone 5) breaks the composer layout: horizontal scrollbar appears. The two-line buttons effect is related to a change (fix) in Bootstrap 4.2 which removes the white-space: nowrap on .btn. It was originally introduced in Odoo through https://github.com/odoo/odoo/pull/29949. Reference: Original Bootstrap PR https://github.com/twbs/bootstrap/pull/27010 Task ID: 1946573 closes odoo/odoo#31939 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-03-21[FIX] mail: offline status iconAlexandre Kühn
Revision on https://github.com/odoo/odoo/commit/07a261db7196d3f7aa7d50d98575c5b6efca9242 When a user is offline, the icon status should be an outline bullet. However, since the commit above, the offline icon was a plain bullet. Also, the offline icon is hidden when displayed next to user avatar. Task-ID 1957966 closes odoo/odoo#31970 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-19[FIX] mail: small UI changes with 'seen' iconAlexandre Kühn
- correctly align 'seen' icon - purple 'seen' icon closes odoo/odoo#31240
2019-03-27[IMP] mail: add a different layout for inactive followersJulien Giannone
When displaying the followers of a document, followers who are set as inactive will be displayed in a different layout than the active ones. The purpose is to mark a clear difference between active and inactive followers. Task #1957849 closes odoo/odoo#32084 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-19[IMP] mail: bigger attachment previews in chat windowKaushalya Mandaliya
Purpose of the task is to increase the size of attachment previews in chat windows. Task-ID 1941601 closes odoo/odoo#31904 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-02-07[IMP] mail: add a Read More on out of office messageXavierDo
Task: 1856205
2019-02-07[IMP] mail, hr_holidays: use leaves to compute im_statusXavierDo
When on leave, the im_status can be either leave_online or leave_offline. This will allow to display a specific icon and a default message when the user is not at the office. The leave can have an out of office message. This message will be displayed in the chat window instead of the user ooo message, and the end date of the leave will be displayed too. Technical details. Right now the im_status access leaves directly to know if a user is on leave or not. An index has been added to optimise this request (thanks to rco). A solution to optimise this would be to compute part of the information in a cron. Task: 1856205
2019-02-07[IMP] mail: add ooo status in chats windows.XavierDo
In a chat window with a single usert (dm_chat) the ooo status of the other user is displayed on the top when set. Task: 1856205
2019-02-07[IMP] bus, mail, mail_bot: add im_status serviceXavierDo
This commit is a refactoring of im_status management. This commit also add im_status in two places, near the author in a mail thread and on each suggestion when using mentions. A service to manage im_status will have multiple benefits here: -centralise information, avoid to call the server multiple time for the same im_status -update all im_status at once and keep consistency in display. With this commit, the im_status updates are now done by rpc call. Updates where previously made with the bus but this has some drawback, since the bus will only give the information 50 seconds after the beginning of the request, in the worst case, we van wait 2*50 seconds to get an update. More than that, the im_status where only updates for pinned dm_chat. Dm chat are synchronized cross tabs, making the use of the bus possible for this purpose. Since we will need to display im_status not linked to dm_chat, the list to update will be different from tab to tab making the use of bus difficult for this purpose. Technical notes: -im_search has been moved from bus to mail addons since it concerns mail.channel -Update of an im_status should be reflected everywhere in the page. Since im_status is a rendered template used in multiple widget, we should add the correct logic to all concerened widget. The current solution is simple: use a jquery selector to find every place where im_status is rendered. -we add a new im_status: im_partner. This will indicate that that the partner has no user linked to him, making it possible to avoid to ask for status updates for this partner. -The update will only be done when the tab is focused. (and will be done asap once the tab get focus back)
2019-01-31[MERGE] forward port branch 12.0 up to cb8fefa8999Christophe Simonis
2019-02-04[MERGE] forward port branch saas-12.1 up to 4524ad06a8aChristophe Simonis
2019-01-28[IMP] mail: adds delete and upload to chatterThanh Dodeur
backport of 73d9b9588f24788766c66aacd69ed436bb0223f4 This commit adds the ability to upload and delete attachments from the chatter. closes odoo/odoo#30636
2019-01-18[FIX] mail: allow the followers list to be scrolledNans Lefebvre
The follower's list has an ancestor (the o_chatter_topbar) that has a 33px size. Thus it has not been given any max-height, so that it can overflow that 33px limit. But it also means that it can overflow the screen, without any scrollbar, so long lists are unreadable and unusable. We set the max-height to a reasonable value, allowing for scrollbars. opw 1922062 closes odoo/odoo#30211
2018-12-21[IMP] mail: adds delete and upload to chatterThanh Dodeur
This commit adds the ability to upload and delete attachments from the chatter. Task: #1911277 closes odoo/odoo#29702
2018-12-06[REF] base, mail: splits the documents feature from ir attachmentThanhDodeurOdoo
Moved the field 'active', 'res_model_name' and 'thumbnail' from ir.attachment to enterprise's documents.document. Moved the pdf split feature to enterprise's Documents module. task: #1908896
2018-12-06[IMP] mail: channel seen icon indication ('v' and 'vv')Alexandre Kühn
This commit adds the seen icon next to a message for all channels except livechat. It tracks received and seen messages for all members of the channel. Icon is either 1 or 2 check(s) ('v' or 'vv'). Those are the different states of this 'seen' icon: ICON: DESCRIPTION: no check .................. no one has received the message. 1 check ................... some members have received the message, no one has seen it. 2 checks (greyed-out) ..... some members have seen the message, some or everyone has received it 2 checks (green) .......... all members have seen the message This icon is not shown for messages preceding the last message seen by everyone, in order to reduce visual noise. Task-ID 1881001
2018-12-06[IMP] mail: discard replying to a message in discussAlexandre Kühn
This commit adds a button to discard replying to a message from the Discuss inbox. Task-ID 1881001
2018-12-06[IMP] im_livechat, mail: quick search when several channelsAlexandre Kühn
Discuss sidebar now shows a quick search when there are at least 20 channels or DMs or Livechats that are pinned. Task-ID 1881001
2018-12-06[IMP] im_livechat, mail: improved "is typing" notificationAlexandre Kühn
With this commit, the UI for "is typing..." notifications has changed. ** before **: In Discuss & chat windows, "is typing..." notification bar at the bottom of the thread, inside the conversation. ** after ** In chat windows, animated '...' next to conversation name. In Discuss, animated '...' next to conversation name in sidebar, and text below the composer. Task-ID 1881001
2018-11-26[IMP] mail: Allowing drag/drop files/images on mail composerDharmang Soni
By this commit user can upload attachments by drag and drop in chatter composer. This feature can be used from discuss UI, chat windows and form view chatter. Before this commit chatter unlinks the attachment if another attachment uploaded with same name. Criteria for removing duplicate attachment is changed with this commit. Now it will remove the attachment based on name and size of attachment. The reason for this change is, when you upload image with same name from different directory with old condition it was not possible to attach more then one image/file of same name. Related to task #32469 Closes #18914
2018-11-22[FIX] mail: notif manager positions date + checkNicolas Lempereur
By default in the notification manager we see something like: ``` record name {a second ago} summary V ``` but if for example the record name is long or the summary empty, we can have something like: ``` record name so very long {a s} V --- record name so very very lo... V ``` This is because the record name was not allowed to grow, and the positionning of the check mark based itself on the existence of the summary container (.o_last_message_preview). With this change the date a message was sent is shown in any case and the check mark is on the right. opw-1911654 closes #28960
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2018-12-18[IMP] mail: improve activity done message templateXavierDo
Feedback should be the first part of the message without title to make it more concise. If the activity has a note, the note should be displayed but after the feedback. We can also remove the field feedback that was not so useful since it was only written just before unlink. Feedback is now passed as another parameter to the template. Task: 1918392 closes odoo/odoo#29605
2018-11-06[FIX] mail: content override toolbar in mobile landscapePierre Paridans
On mobile (specifically in landscape orientation as the height of the viewport is narrower), the content appear over the bottom toolbar instead of going below. Solution is in 2 parts: * raise the toolbar way above the content * make the toolbar opaque closes odoo/odoo#28429
2018-10-02[FIX] web, *: remove useless mixinqsm-odoo
* mail
2018-09-18[REF] mail: activities list, ‘mark as done’ sliding panelsri-odoo
Refactor ‘mark as done’ popup JS in order to use a sliding panel layout instead. Sliding panels are currently needed in kanban views, where activities are listed in a dropdown that can't handle popups because of CSS overflow and lack of space. Since this new system check for default bootstrap data-toggle attributes, it could be easily used elsewhere changing the buttons's data-toggle and providing the necessary container for the “mark as done” form.
2018-09-18[IMP] mail: add force_next on activity typeXavierDo
A new field on activity type allow to change the behaviour of mark done & schedule next: -marking as done will automatically schedule the next activity, based on the default_next_activity. -It should also be impossible to edit an activity when this flag is on. task: #1884521
2018-09-17[FIX] mail: counter color green in communityAlexandre Kühn
It was blue over blue with the change of the navbar. Before the navbar change, it was blue over black. To avoid blue over blue, counter is now green, so that it is green over blue.
2018-09-13[IMP] mail: new attachment button in the chatterThanhDodeurOdoo
- Added a new button to the chatter that displays the amount of attachments on the current record and when clicked, all the attachments attached to the current record - added mail.FormView (includes), used by the chatter attachment button to fetch the field value of attachment_count. - added a computed field "attachment_count" to mail.thread that contains the amount of attachment attached to the record. - changed the followers div, it is now sharing a "right side" area with the attachment button. task: 1860031
2018-09-12[IMP] mail: bigger emoji size in the composer selectionAlexandre Kühn
The emojis were too small, thus hard to read. Task-ID 1882595
2018-09-11[FIX] mail: BS4, adjust counter positionKinjal Mehta
2018-09-07[MERGE] forward port branch saas-11.4 up to d78f23df848Christophe Simonis
2018-09-07[REF] base, mail: Documents (enterprise) related changesThanhDodeurOdoo
-removed force_ext from ir.http. -added signature arg to web/image to differentiate cache entries by URL. -added an embed youtube viewer for youtube URL's -added a PDF splitter to the PDF viewer UI -added tests for mail's Document Viewer -added a "signature" param to web/image to go around the browser cache -thumbnail field of ir.attachment is now stored in the filestore as a distinct attachment. task 1853490 Co-authored-by: Pierre Paridans <app@odoo.com>
2018-09-07[FIX] mail: set cursor as pointer when hovering contact name in activity ↵Thibault Delavallée
summary view Purpose of this commit is to make it obvious contact name cell is clickable. This commit is linked to task ID 1882545 and PR #26797.
2018-09-07[IMP] mail, contacts: allow to have actions in systray elementsThibault Delavallée
Purpose of this commit is to allow having an icon redirecting to the activity summary view in the partner activities section of systray. This is done by supporting an additional 'actions' list in the activity data given to the systray. It displays small icons that redirect to an Odoo action given its xml ID. This commit is linked to task ID 1882545 and PR #26797.
2018-09-07[FIX] mail: improve activity view and fix activity feedbackXavierDo
-Improve no content helper on activity view -Update chatter after editing an activity un form view -Avoid context to appear as feedback When using call_button the context is set as an arg and will be catched by the kwargs of the called action. As for action_feedback, we can create a wrapper without kwargs used when calling this method from a button to avoid this problem. Another solution would be to change the call_button in order to give the context as a kwargs. Maybe a possible improvement for master. -Remove groupby from activity view group by has no effect on activity -Change cursor to pointer on record name in activity view Task: #1878184 PR: #26668
2018-09-06[FIX] mail: allow resend on bounceXavierDo
Only o_thread_message_email_exception red envelope was clickable. We should be able to resend bounce too.
2018-09-05[FIX] mail: display iconMartin Trigaux
The icon for .o_user_online (e.g. fa-heart for bot) was not displayed as it was the same color as the one defined in .o_thread_window_header Use $o-enterprise-primary-color (aka green) to indicate the user is online Closes #26350
2018-08-31[REM] mail: no push notifications permission request in DiscussAlexandre Kühn
This has been replaced with "OdooBot has a request" in the systray messaging menu (see https://github.com/odoo/odoo/commit/f80bbb4b2a1230ba543e97d3da01c7b2c52d24cc). Task-ID 1877502
2018-08-30[IMP] mail: improve envelop icon tooltip styleSiddarth Gajjar
This commit improves the style of the tooltip on the mail envelop icon next to a message related to an email. To do so, we have removed existing CSS and custom tooltip UI and replaced them with boostrap popover. This commit also removes most flickering issue when mouse hovering on gaps between the tooltip and message icons. Note that there are still corner cases that produce flickers. This is unfortunately a known issue with bootstrap 4, as this glitch can also be observed on bootstrap website. Task-ID 1879282 Closes #26546
2018-08-21[FIX] mail: "is typing..." notification sticky top for DESC threadsAlexandre Kühn
Revision on https://github.com/odoo/odoo/commit/4fa071339a8f381b1336fe326577c9decc04a1e1 There was a typo in the style of the 'is typing...' notification bar, which resulted in applying the wrong sticky behaviour to ASC and no sticky behaviour at all for DESC. This commit applies the correct sticky behaviours to the notification bar in both configurations: ORDER: ASC DESC +--------[top]--------+ +--------[top]--------+ | | | | | (older messages) | | (newer messages) | | | | | visible top ----> |- - - - - - - - - - -| |- - - - - - - - - - -| | | | X is typing... | | ... | | ... | | message i | | message i + 1 | | message i + 1 | | message i | | ... | | ... | | X is typing... | | | visible bottom ----> |- - - - - - - - - - -| |- - - - - - - - - - -| | | | | | (newer messages) | | (older messages) | | | | | +------[bottom]-------+ +------[bottom]-------+
2018-08-21[FIX] mail: "is typing..." notification sticky top for DESC threadsAlexandre Kühn
Before this commit, the 'is typing...' notification bar was sticky to the bottom of the thread, independently of the ASC or DESC mode order of threads. This is okay for ASC, but not for DESC: it should stick to the visible top of the thread for DESC. As a result, this notification bar was always at the top of the thread, without the 'sticky' behaviour: +--------[top]--------+ | X is typing... | | | | (newer messages) | | | |- - - - - - - - - - -| <---- visible top | | | ... | | message i + 1 | | message i | | ... | | | |- - - - - - - - - - -| <---- visible bottom | | | (older messages) | | | +------[bottom]-------+ With this commit, the 'is typing...' notification bar sticks to the visible top of DESC threads: +--------[top]--------+ | | | (newer messages) | | | |- - - - - - - - - - -| <---- visible top | X is typing... | | ... | | message i + 1 | | message i | | ... | | | |- - - - - - - - - - -| <---- visible bottom | | | (older messages) | | | +------[bottom]-------+
2018-08-20[IMP] mail: refactor activity.js and add some testXavierDo
activity.js was a little dirty with a lot of copy paste. Most of the common logic is now in a BasicModel. This commit also add some tests on activity view Co-authored-by: RomainLibert <rli@odoo.com>