summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/composer/composer.js
AgeCommit message (Collapse)Author
2021-03-26[FIX] mail: command suggestion should only show if '/' is first charPriyanka Kakadiya
PURPOSE: command suggestion should only open if command is the first char. SPECIFICATION: command suggestion should only open if command is the first char. Task-2487518 closes odoo/odoo#68376 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-03-26[FIX] mail: do not show typing when using a / commandPriyanka Kakadiya
PURPOSE: Currently typing status is sent when typing a command. SPECIFICATION: Typing status should not be sent when typing a command. Task-2363267 closes odoo/odoo#66821 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-03-10[FIX] mail; hr: restore faster and more accurate mention suggestionsXavier Dubuc
The code from v13 used to look for partners in JS before making the RPC, which was much faster, and also gave better results by returning partners that were already known and therefore more likely to be selected. The same logic is reintroduced here, and further improved to take into account all known partners and sort them according to the likeliness they will be selected based on various criteria. task-2413776 closes odoo/odoo#64161 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com>
2021-01-15[FIX] mail: prevent composer cursor from randomly changing positionSébastien Theys
task-2388600 closes odoo/odoo#62446 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-10[FIX] mail: prevent autofollow when using mentions in notesSébastien Theys
task-2415579 closes odoo/odoo#63196 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-07[FIX] mail: fix unfedined record when pressing "end" key in mentionsDidier (did)
task-2411756 closes odoo/odoo#62861 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-11-30[FIX] mail: fix mention suggestion order and skip intermediate rpcSébastien Theys
task-2387825 closes odoo/odoo#62393 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-24[FIX] mail: fix text selection in composer using SHIFT and arrow keysJulien Giannone
This commit corrects the faulty SHIFT + ArrowKey selection behavior. task-2388650 closes odoo/odoo#62059 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-24[FIX] mail: avoid adding non-members on mention in channelsSébastien Theys
task-2392010 closes odoo/odoo#62230 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-20[FIX] mail: prevent multiple send of message by spamming send buttonXavier Dubuc
task-2388702 closes odoo/odoo#61993 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-11-06[FIX] mail: remove regex from mentionsSébastien Theys
That should fix all detection issues once and for all. task-2366680 closes odoo/odoo#60593 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-02[FIX] mail: wrap to new line spaces to avoid bad mention detectionDidier (did)
2020-11-02[FIX] mail: escape the mentionned channels before matching themDidier (did)
Escaping the match name is escaping an already escaped string from `postMessage`. How ever we need to escape the string from `this.mentionedPartners` and `this.mentionedChannels` since they are matched with an escaped string. This fix the bug when mentionning a channel with `&` in it's name. task-2366680 PR https://github.com/odoo/odoo/pull/60593
2020-11-02[FIX] mail: detect space inside channel nameDidier (did)
task-2366680 PR https://github.com/odoo/odoo/pull/60593
2020-11-02[FIX] mail: handle transient messages with (un)seen notionsXavier Dubuc
task-2343887 closes odoo/odoo#60906 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-02[FIX] mail: mail not sent because partner not find in chatterNasreddin (bon)
Issue Partner not found if multiple breakline in message. Cause '\n' not replaced by '\n ' globaly. '<br/>' not replaced by '<br/> ' globaly. Fix of this commit : https://github.com/odoo/odoo/commit/902302598e98efab52d61979e85def6d025ff2ab opw-2322577 closes odoo/odoo#61119 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-29[FIX] mail: fix height overflow of mentionsSébastien Theys
Due to mentions being positioned inside thread view and messaging list (when in chat window) and those two elements having `overflow: auto`, it is necessary to give mentions an appropriate max height to prevent overflow. This makes it necessary to add a scrollbar to the mention list, which makes scrolling into view of active item necessary when navigating with the keyboard. Also removed activating item on mouse over to prevent activation of wrong items when navigating with keyboard if the cursor is unfortunately over another item. task-2275828 closes odoo/odoo#60930 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-29[FIX] mail: fix handling of lastVisibleMessage in channel seen conditionXavier Dubuc
also fix a problem with composer.hasFocus field not always correctly updated (e.g. when switching from a channel to another in discuss) task-2278915 closes odoo/odoo#60079 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-27[FIX] mail: Do not send log notes to customersAchraf (abz)
Issue - Install "CRM" - Create new lead - Set X to customer - Send a log note X receives log notes by mail Reproducible on Project and CRM Cause The customer sends a list of partners who will receive an email even when it is a log note Solution Send the list of partners only when it is an email and not a log note opw-2369280 closes odoo/odoo#60836 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
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: 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-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-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: 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-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-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-07[FIX] mail: chatwindow scroll to the last message when postingDidier (did)
Before this commit, when a user posted a message from a chatwindow, the scroll did not move to the last message. task-2314409 closes odoo/odoo#57178 X-original-commit: 8e4f133890b08e7e9a909abbc97b89bb5409119a Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-28[FIX] mail, *: fix opens and redirects, adapt messaging menu closeSébastien Theys
task-2244279 task-2262862 task-2274993 task-2277537 task-2282238 closes odoo/odoo#56745 X-original-commit: 109f202 Related: odoo/enterprise#12761 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-28[FIX] mail, *: rename thread viewer to thread viewSébastien Theys
The "viewer" should be the "parent" not the view itself. This distinction will become important in a future commit to allow viewers to not display the view in some situations. Rename done as a standalone commit to ease diff readability. Part of task-2310623 closes odoo/odoo#56737 X-original-commit: 1b811e6a972d72de02965adda67c5b039bee023f Related: odoo/enterprise#12756 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-21[FIX] mail: prevent composer to send message if pending uploadsXavier Dubuc
task-2317862 closes odoo/odoo#56303 X-original-commit: 3b5cd048f1dfa18869e95b173b4232b4bb189025 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-13[FIX] mail: fix full composer opening with attachmentsXavier Dubuc
task-2307201 closes odoo/odoo#55678 X-original-commit: 9c47bb0b0034a3419a0c6e3267d90cb520a59535 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-03[FIX] mail: save JS records per model and use exists if possibleSébastien Theys
This allows get to be simplified to only handle local id. Part of task-2308312 closes odoo/odoo#55346 X-original-commit: fa013d1d29e64706a08499d0f564327766410f8e Related: odoo/enterprise#12159 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-15[FIX] mail: set full composer subject and recipientsXavier Dubuc
task-2291887 task-2291893 task-2291898 closes odoo/odoo#54531 X-original-commit: 26170ad9ab09d75de2e0af98fb7daedc2ed57e50 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-08[FIX] mail: bring back extended composer for mailing channelXavier Dubuc
task-2171877 task-2282377 task-2282382 closes odoo/odoo#54249 X-original-commit: acf8eb3e2e49c1ade638ff1f2fed4969f9944053 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-06-26[FIX] mail: fix (inbox reply) composer event handlers (and discard)Sébastien Theys
task-2092950 closes odoo/odoo#53731 X-original-commit: c29f5776594c4d2278ce163a78d8eb917fb672c0 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-25[FIX] mail: clarify composer placeholderXavier Dubuc
Also moved isLog from composer component prop to composer model field. task-2280159 & task-2250887 closes odoo/odoo#53645 X-original-commit: ba41b1de5edc2b3153a5b20a4f11778a3f724ade Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-16[FIX] mail: mark message as seen only when thread composer is focusedXavier Dubuc
task-2272510 closes odoo/odoo#53088 X-original-commit: edf356c2022b3039e53e82a092fc64533f59df27 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>