summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
AgeCommit message (Collapse)Author
2020-10-23[FIX] mail: force the model when creating basic threadDidier (did)
closes odoo/odoo#60285 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-23[FIX] mail: incorrect value for partner id.Didier (did)
2020-10-23[FIX] mail: handle the case when the user id isn't and array.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-22[FIX] bus, mail: fix im_status for archived partnersThanh Dodeur
Before this commit, archived and deleted partners had not their im_status being updated automatically. There were some issues with this, notably: - odoobot 'bot' status was not displayed in chatter - im_status of partners becoming archived were not updated. This commit fixes both issues. task-2329591 closes odoo/odoo#60398 Signed-off-by: Sébastien Theys (seb) <seb@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-16[FIX] mail: no response on invalid commandJulien Giannone
This fix allows to send an invalid command as a normal message to have it displayed in the messages list. closes odoo/odoo#60165 Task-id: 2360504 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-16[FIX] mail: marking activity done from form viewHiral Bhavsar
Before this commit: When editing the activity, traceback while processing with buttons "Done & Schedule Next", "Mark as Done" from the form view. This is happening because when we process with these buttons it complete the action of respective buttons and then the trigger will go on the close window. Hence, we don't have activity data as "mark as done" remove the activity. After this commit: Footer buttons will be processed as expected without any traceback. Task-2357681 closes odoo/odoo#59643 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-15[FIX] mail, website_slides: fix while accept the request from the new attendeeHiral Bhavsar
Before this commit: We have a new feature that if the course is private, and attendee make the request to access the course it will create an activity for 'course responsible'. Currently, after accepting the invitation request from the new user, it is still not considered the user as an attendee and not displaying like 'You're enrolled' to the respective users After this commit: The features of access invitation on courses will be workable. Task-2328389 closes odoo/odoo#59504 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] crm,mail: clear breadcrumb when redirecting to activities from systrayKamesh Patel
Before this commit: When accessing activities from the systray, any existing breadcrumb-item should be clearer. After this commit: Clear breadcrumb-item when access activities from the systray. Task-2342246 closes odoo/odoo#59997 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-14[FIX] mail: adds shadow to RPCsThanh Dodeur
This commit adds shadow to RPCs that are not supposed to be blocking. task-2352703 closes odoo/odoo#59991 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-08[FIX] mail: channelId undefined on the message_seen_indicator modelDidier (did)
message_seen_indicator model doesn't have a field threadId, it use channelId. channelId is required since it's use inside the _createRecordLocalId function closes odoo/odoo#59489 X-original-commit: f82396cba884604603eea38e291422faebea2f58 Signed-off-by: Sébastien Theys (seb) <seb@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-07[FIX]*: clear breadcrumb when redirecting to activities from systrayKamesh Patel
* mail,calendar,note Before this commit: When accessing activities from the systray, any existing breadcrumb-item should be clearer. After this commit: Clear breadcrumb-item when access activities from the systray. Task-2342246 closes odoo/odoo#59389 X-original-commit: 6dd181c789d22f99073fcd0a9b0fa2edccdfe0fc 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-10-02[FIX] mail, im_livechat: consider all init channels as pinnedSébastien Theys
task-2347732 closes odoo/odoo#59023 X-original-commit: f1ac4bb61d1bc02c4b69dc31a2869fbd15852514 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-02[FIX] mail: disable initial scroll position for chatterSébastien Theys
task-2350534 closes odoo/odoo#59018 X-original-commit: 4db7ecd836525357f408359e000a12880a5eab4a Related: odoo/enterprise#13779 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@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[REF] mail: remove unused nonOriginThreadsSébastien Theys
This field was only used to compute the `threads` field. X-original-commit: 8089b521aee89eb70ad0c951a1aaf76763c66098
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: avoid flicker when uploading multiple attachementDidier (did)
task-2282327 closes odoo/odoo#58354 X-original-commit: 413c6c406eac52048b9a0b80c7ee46efe5b061c4 Signed-off-by: Alexandre Kühn (aku) <aku@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>