summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components
AgeCommit message (Collapse)Author
2020-10-23[FIX] mail: incorrect value for partner id.Didier (did)
2020-10-23[FIX] mail: filter commands used in composer based on channel typeJulien Giannone
closes odoo/odoo#60052 Task-id: 2343850 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-23[FIX] mail: add test to the suggested recipient featureDidier (did)
task-2343795 closes odoo/odoo#59989 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-23[FIX] mail: do not return members of channels in channel_infoSébastien Theys
This PR has 3 parts: The members fix itself, which is necessary for performance reasons especially at init messaging, as per described in the task. Adding the partner name in the typing payload, because due to not knowing all members anymore, it is necessary to properly display who is typing. Restrict restoring scroll position only if the corresponding scroll height is available, to make the scroll feature and particularly the corresponding tests more robust. task-2360020 closes odoo/odoo#60091 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-16[FIX] mail: sets the z-index of dialog to the z-index of modalsThanh Dodeur
This commit gives to o_Dialog the same z-index as modals, before this commit, the dialog could be hidden or partially obstructed by other elements. part of task-2171884 closes odoo/odoo#60162 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-15[FIX] mail: mail not sent because partner not find in chatter + unit testNasreddin (bon)
Issue - Install "Project" module - Go to the chatter of any Task - Log the following message (by selecting the partner) then send: "test@test.com @marc Demo " Message is not sent. Cause When parsing the content, the match result is "@test.com\n@Marc Demo" due to no space between the two mentions Solution Add space after line break (only when parsing selection). In this case, it will match with 2 mentions instead: "@test.com\n" and "@marc Demo " For _generateMentionsLinks step, add a space after '</br>', it will match 2 mentions but we remove the ones that end with '</br>'. This last fix is to avoid having a non-mention string containing '</br>' (for example), and therefore not having them escaped in final message content. opw-2322577 closes odoo/odoo#59648 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-14[FIX] mail: open mentions below composer in chatterSébastien Theys
opw-2358094 closes odoo/odoo#60004 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-14[FIX] mail: inverts the zoom scroll direction of the attachment viewerThanh Dodeur
This commit inverts the zoom direction of the scroll wheel in the attachment viewer to respect the behaviour of before the refactor. part of task-2171884 closes odoo/odoo#59992 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-14[FIX] mail: corrects wrong url formatting for attachment downloadThanh Dodeur
This commit changes the url formatting of the `services.navigate` in the attachment viewer. Before this commit, the resulting URL was erroneous which prevented download and lead to a 404 error. part of task-2171884 closes odoo/odoo#59953 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-12[FIX] mail: ensure discuss composer at the bottom if no message listSébastien Theys
task-2358093 closes odoo/odoo#59730 X-original-commit: 07159984999b14d1566706a62d54594753ad9f93 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-10[FIX] mail: plain-text messages word-wrap in Discuss UIPierre Paridans
When a user sends a plaintext email to a mail-enabled channel, the rendering of this message in Discuss have present a horizontal scroll when the text contains long sentences. This commit fixes it by enabling wrapping of the line's word to fit its container size and prevent horizontal scrolling. Note: the required CSS rules were already present since odoo/odoo@0e7e18ff71f3b490522358fa689ada7635dcd26a but a wrapper element (with the class `.o_thread_message_content`) was introduced in odoo/odoo@4685e4bc7f19f964697bf0dbd7dfdf254b6c5628 and merged between the testing of the fix above and its actual merging in the Odoo codebase, making it ineffective. We only have to properly re-enable it. opw-2341485 Related task ID: 34931 closes odoo/odoo#59689 X-original-commit: a8b64a74ef5575b783d1b314616f0a89bdce3732 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-10-09[FIX] mail: ask for confirmation before attachment deletionXavier Dubuc
also hide all messages with empty body and no attachments task-2282322 closes odoo/odoo#59672 X-original-commit: 60ae42dcda777cd66e4e421dbc02f9ef12a430ef Related: odoo/enterprise#13971 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-09[FIX] mail: fix discuss search filters and related issuesSébastien Theys
- don't reset `stringifiedDomain` when changing thread (this led to the control panel displaying obsolete filters) - refresh non-main cache that are currently displayed when there is a known change of messages in the same thread's main cache - refresh non-main-cache on displaying them, to fetch potentially new messages - fix discuss "select all" conditions task-2171873 task-2282374 closes odoo/odoo#59631 X-original-commit: b89dc5f949b3ad062fc4197a4152066c207e1bf9 Related: odoo/enterprise#13958 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-08[FIX] mail: avoid useless (un)link when using replaceSébastien Theys
Side effect of this change: dependencies are not longer triggered when replace is not actually doing anything. task-2270780 closes odoo/odoo#59508 X-original-commit: 75a44675873d65fdf17f2205772b05a0f59bb42c Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-07[FIX] mail: clean up relations between chatter and threadSébastien Theys
This will prevent various flicker when using previous/next. task-2243518 closes odoo/odoo#59375 X-original-commit: 1559e82e6b781601286003c2aff364dbb19c9bfc Related: odoo/enterprise#13868 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-06[IMP] mail: test new message separator in some edge casesXavier Dubuc
task-2348620 closes odoo/odoo#59279 X-original-commit: 53ed641a60e6d572a12d96406b64af5b55fe177e Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-29[IMP] mail: add files in preparation of task-2282322Sébastien Theys
The task will require adding new files which we don't want to do in stable. closes odoo/odoo#58875 X-original-commit: 5580a0e4e44744d13ec9bed03f2116c043c611b1 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-29[FIX] mail: reintroduce auto scroll on receiving messageSébastien Theys
task-2336251 closes odoo/odoo#58867 X-original-commit: f732980b2e5e83bcf2fdc8d3ce756f256cacbd4f Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-29[IMP] mail, website_livechat: bring back visitor banner in discussXavier Dubuc
task-2276589 closes odoo/odoo#58857 X-original-commit: 65dbe1c4760e2ffe104426f9aa41007a10dc32f0 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-29[FIX] mail: do not show new messages separator for own messagesXavier Dubuc
Also fix compute of local counter in some specific situations. task-2341740 closes odoo/odoo#58855 X-original-commit: 7d1878ff8a4757d1626d694b624f79e597ddd717 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-29[FIX] mail: avoid loading state when a new message is postedDidier (did)
task-2346786 closes odoo/odoo#58843 X-original-commit: cfc280f5386de44ffac1c1c27e8a0a7d928a8424 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-29[FIX] mail: guard the thread name and test the fallbackDidier (did)
task-2343800 closes odoo/odoo#58842 X-original-commit: 13d78eda1243a5a625473adbae981b2891221ffc Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-29[FIX] mail: properly clear chatter id on new recordSébastien Theys
task-2348372 closes odoo/odoo#58818 X-original-commit: 189ff0af0ac209624910a7674f543d2d58ecb94f Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-29[FIX] mail: fix tour to allow public or private channel selectionSébastien Theys
task-2313321 closes odoo/odoo#58778 X-original-commit: f6a561a7e21772c6a25785c8b2428954d4bd152e Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-29[FIX] mail: prevent sync fold state for non-channelsSébastien Theys
task-2346650 closes odoo/odoo#58794 X-original-commit: f5b6e78e77eac27af3b3812ac3818a67acaa1c85 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-24[FIX] im_livechat, mail, website_livechat: open chat website visitorAlexandre Kühn
Also fix an issue with livechats not being considered in 'chat' filter of messaging menu. Task-Id 2282426 closes odoo/odoo#58466 X-original-commit: 631e52536964763bbfe857305f023e5e67084e95 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-24[FIX] mail: Mailbox is half loaded on mobileRomain Estievenart
Before this commit on mobile when you come to odoo from a notification url like: https://my_domain/web#action=mail.action_discuss&active_id=1&menu_id=93 a traceback occurs on mobile discuss wasn't loaded correctly and the content didn't appear. With this commit, it's open the related discuss thread. It's also ensure the return to the chat tab when you close a chat and the return to the channel tab when you close a channel conversation. We also ensure the loading of the inbox items when you navigating on the mobile discuss button. Steps to reproduce: 1. Open a chat from a mobile notification 2. A traceback occurs opw-2310319 closes odoo/odoo#58428 X-original-commit: 8ca5024bef246c93bbb7522d77aca4c4ba7a33b4 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-24[FIX] mail: fix tracking value issue when value is 0Priyanka Kakadiya
Before this commit: When a tracking field is set to 0, the mail tracking value doesn't display 0 in the chatter. It is empty instead i.e: Field Name: 1 -> After this commit: Tracking value will show the changed value even if it is false or 0 i.e: Field name: 1 -> 0 closes odoo/odoo#58419 Task: 2334048 Closes: https://github.com/odoo/odoo/pull/57342 X-original-commit: 57f4018694a895fd804b51e8206503e3d1d3c5d4 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-23[FIX] mail: use compute fields for identifying relationsXavier Dubuc
(in message seen indicators) task-2335647 closes odoo/odoo#58373 X-original-commit: 3d4ff42f4474a5761c9e0737297d973992a2fcc2 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-23[FIX] mail: compute display_name for partner and userDidier (did)
task-2322135 closes odoo/odoo#58371 X-original-commit: d9bdbde95c3694ecdaccd58b5475631137c22e93 Related: odoo/enterprise#13476 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com>
2020-09-23[FIX] mail: add emoji popover max widthSébastien Theys
Emoji popover should be rather narrow, it doesn't look good to have one line of emojis taking the whole screen. The goal is too keep the choices in close range of the open button for quick selection. Part of task-2270731 X-original-commit: 75d742f4e48c836f74bc7beee10c89ea544173eb
2020-09-23[FIX] web, mail: recompute popover on content changeSébastien Theys
Because the position of the popover depends on the size of its content. Part of task-2270731 X-original-commit: 3066a946ef1ca0973503207d0486515798168fa2
2020-09-23[FIX] mail: prevent unnecessary fold state RPCSébastien Theys
When the pending value is the same as the current server value, the pending value should be ignored and no RPC should be done. In particular this prevents a non-main tab from calling the RPC when receiving a bus notification that would lead to closing a chat window, which in turn used to call the close RPC again before this commit. This led to inconsistencies especially on the main tab, if the chat window was requested to be open again after the initial close, but before the "secondary" close, it would end up closing instead of opening. The current commit reduces the issue and prevents as many unnecessary RPC as there are tabs open, which is a good improvement. But it does not negate it completely. Indeed, when quickly closing then opening the same chat window, it might still happen for network reasons that the RPC or the corresponding bus notifications are received in the wrong order. This is less frequent both functionally (to click so fast) and technically (to have the network that slow) at the same time, so it is considering acceptable / out of scope. The opportunity is taken to clean up the code by removing unnecessary fields and making use of compute and flux specific RPC instead of `_updateAfter`. task-2273658 task-2329521 closes odoo/odoo#58367 X-original-commit: cbb1d855c7af5f78819db3cd476dbe0f985bc214 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-23[FIX] mail: allow to open record thread in chat windowSébastien Theys
task-2171885 closes odoo/odoo#58318 X-original-commit: af6e68c2c5bd819402af0126c87f375e096c8d0d Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-23[FIX] mail: ignore `undefined` in JS fields create/writeSébastien Theys
Passing a field containing `undefined` should lead to the same result as not passing the field. Fields that relied on `undefined` as a value have been changed to use the newly introduced `clear` command, that resets a field to its default value (often that is equal to `undefined`). task-2336491 closes odoo/odoo#58308 X-original-commit: b18824485483564d2ab80f41914a3548aa528ae0 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-22[FIX] mail: align the chatter topbar height and form view statusbarDidier (did)
task-2341787 closes odoo/odoo#58252 X-original-commit: 37a0203c1cfb2567c418016424cd04dea27e2557 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-22[FIX] mail: do not show "load more" on temporary threadDidier (did)
task-2341690 closes odoo/odoo#58246 X-original-commit: 9b56c82d3a4b07730490816a67911cbf60900158 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-21[IMP] mail: reintroduce channel mentions, canned responses, commandsJulien Giannone
task-2280308 closes odoo/odoo#58166 X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d Related: odoo/enterprise#13392 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-21[FIX] mail: restore the "to followers" featureDidier (did)
Before this commit, the "to followers" message inside the chatter composer was missing. Fix also some padding issue. This also restore the form dialog when you try to send a message to a suggested recipient that doesn't have a partner (someone in CC email for eg). But now, suggested recipient without partner are unchecked by default and the form open when the user try to check them. If the user discard the form dialog, the suggested recipient isn't checked. This is better since only a partner will receive a notification. task-2280157 closes odoo/odoo#58160 X-original-commit: 67d151cc36871d87b92676357a31a70de5a92fce Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-18[FIX] mail: fix notification partners display in popoverXavier Dubuc
Handle notification creation in convertData correctly. task-2324260 closes odoo/odoo#57970 X-original-commit: 7305bcf4edcbaa31b86bdc7b4ece460f30515c27 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-17[FIX] mail: fix "New messages" separator and channel_seen behaviourXavier Dubuc
- channel_seen is now called even for own message and only when needed - channel_seen is now called with a message_id which transfer the decision of what is seen to the client which makes more sense task-2282235 task-2282248 closes odoo/odoo#57950 X-original-commit: 04edfa50ccea305050d017c4a1996e561bc7bd57 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-16[FIX] mail: do not fetch attachment style in QUnit testsAlexandre Kühn
Task-2339931 closes odoo/odoo#57869 X-original-commit: 7586f7756859bb0711eee8a82bf728a039ad0d72 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-16[FIX] mail: send the correct args to the message_unsubscribe methodDidier (did)
Before this commit it was not possible to remove a channel from the followers. task-2324263 closes odoo/odoo#57812 X-original-commit: 9a065048bbdd09072084d03e67fd012766ddbe23 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-14[FIX] mail: allow temporary attachment to be canceledXavier Dubuc
task-2324065 closes odoo/odoo#57618 X-original-commit: 9f774d4fb512017ab5f99981255afc8d2c35113c Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-11[FIX] mail: avoid star flicker when hovering a messageDidier (did)
task-2278441 closes odoo/odoo#57570 X-original-commit: 35e1a675803e64eda0fdae402cbddb56d5c0b1d8 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-11[FIX] mail: fix image ratio on composer and thread previewDidier (did)
task-2318662 closes odoo/odoo#57518 X-original-commit: 1cd5712ff7f04b2fdb185f4fe78dbd3f4f75b801 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-10[FIX] mail: move attachment icon on the right (chatter top bar)Didier (did)
task-2333122 closes odoo/odoo#57450 X-original-commit: 0708b38d2512900d3456a9560673171c1286e571 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-10[FIX] mail: remove no more needed root div node in moderation dialogsXavier Dubuc
task-2310610 closes odoo/odoo#57440 X-original-commit: 76c2eb1590b360a874ef5ccb0df7edf0f1b84bab Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-10[FIX] mail: allow overflow on the chatterDidier (did)
task-2333128 closes odoo/odoo#57439 X-original-commit: d04d2933d72376c80ceb2f1e6769d4a5785f08dc Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-07[FIX] mail: allow tests to await specific eventsSébastien Theys
task-2333915 closes odoo/odoo#57185 X-original-commit: 699106ce65a87f7a24f04e1d8f232b5a6b4e210a Related: odoo/enterprise#13013 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>