Commit Graph
1710 Commits
Author SHA1 Message Date
Géry Debongnie 2254abbde7 [REF] web: move Bus class to web.Bus 2016-06-17 13:32:37 +02:00
Aaron Bohy 99a6f4ac72 [ADD] mail: onboarding tour 2016-06-16 14:59:41 +02:00
Jeremy Kersten 4a4c4e1b95 [FIX] mail: display date and datetime in tracking value with the right timzeone.
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-06-08 15:43:52 +02:00
Christophe Simonis 7306e888a6 [MERGE] forward port of branch saas-11 up to ac50230 2016-06-08 12:28:16 +02:00
Christophe Simonis ac5023060c [MERGE] forward port of branch saas-10 up to 2f948c7 2016-06-08 12:19:23 +02:00
Géry Debongnie b624dd7aa4 [FIX] mail: fix native notifications
because of a previous refactoring, the function send_notification stopped working
at all.  It was not using the instance of the bus, but the module containing the
bus instance.
2016-06-02 15:43:16 +02:00
Mansi Gandhi 4bdbfbdf2f [IMP] mail: 'Mark all read' button is not a primary action
In discuss, mark all read is green. It shouldn't because it is not
the primary action.
2016-06-01 10:23:02 +02:00
Christophe Simonis e4500d06fc [MERGE] forward port of branch saas-10 up to 57944db 2016-05-26 16:55:37 +02:00
Adrien Dieudonne 8002da27d6 [FIX] mail: multiple read more - better heuristic
- wildcard selector for stopSpelling
- <br> tags must not split read more/read less
2016-05-26 14:17:08 +02:00
Adrien Dieudonne bd9fc14659 [FIX] mail: mutiple read more
A read more was added to every node having a mail-quote tag.
However all quotes and their child nodes are tagged, leading to numerous unnecessary read more / read less.
Now, all consecutive mail-quote are joined in one 'read more/read less'.
2016-05-25 14:10:08 +02:00
Christophe Simonis e641d740d7 [MERGE] forward port of branch saas-10 up to fac4cc7 2016-05-24 14:08:42 +02:00
Aaron Bohy e7bc4e9703 [FIX] mail: thread: keep image ratio
With rule 'max-width: 100%', the height must be reset to 'auto' to keep the
image ratio.
2016-05-18 10:09:06 +02:00
Christophe Simonis 91c9284951 [MERGE] forward port of branch saas-10 up to 5aa0bae 2016-05-13 16:33:51 +02:00
Christophe Simonis c4bba868f0 [MERGE] forward port of branch saas-9 up to 087729f 2016-05-13 15:58:06 +02:00
Christophe Simonis 7f2a9e77b6 [MERGE] forward port of branch 9.0 up to dcab356 2016-05-13 14:08:51 +02:00
Aaron Bohy 43f40ec403 [FIX] mail: max width 100% of images in threads 2016-05-13 08:24:47 +02:00
Thomas Groutars 0e4ad2417d [FIX] mail: missing translation due to typo
Closes #11929
opw-676854
2016-05-11 11:28:27 +02:00
Nicolas Lempereur b9803b3de3 [FIX] mail: rapid click on "New Message" cause error
If the "NEW MESSAGE" or "Log an internal note" are clicked succeedingly
too fast, we can get into a situation where the composer is init'ed but
have not already been start'ed.

closes #11952
opw-675973
2016-05-09 10:39:14 +02:00
Christophe Simonis 0fbc92e0c4 [MERGE] forward port of branch saas-10 up to 1e86774 2016-05-04 17:09:51 +02:00
Christophe Simonis 1e86774207 [MERGE] forward port of branch saas-9 up to 89873cb 2016-05-04 15:42:26 +02:00
Aaron Bohy 7ded5370f1 [REF] mail,web: unique Spinner template in base.xml 2016-05-04 15:06:20 +02:00
Aaron Bohy 80e83f17d4 [IMP] mail: chatter: better sync between chatter and form view
When switching between records, the displayed thread was still the one of the
previous records until the messages of the current record were loaded, which
could be confusing.

Moreover, when quickly browsing records using the pager, it could happen that
the resulting displayed thread wasn't the one of the displayed record (if
we visited a record with a long thread history, the RPC to load that history
might return after the one of the current record).

This commit aims to always synchronize the displayed thread with the current
record, by
  - directly hide the previous thread when browsing records
  - displaying a spinner after 1s to indicate that the thread is loading and
    (possibly) not empty
  - ensure to only render the thread of the last visited record
2016-05-04 15:06:20 +02:00
Christophe Simonis 89873cbed5 [MERGE] forward port of branch 9.0 up to 3381e7b 2016-05-04 14:42:54 +02:00
Aaron Bohy 39a48a4090 [FIX] mail: systray: colors in messaging menu
Default color is white in the enterprise webclient since the navbar refactoring
of bf39884.
2016-05-03 15:15:53 +02:00
Aaron Bohy 019fcae90b [FIX] mail: messages sent as reply to previously selected message
In Discuss, if a message was selected as message to reply to, it wasn't reset
when switching to another channel. So if the user sent a message in that other
channel, the message was sent as reply to the previously selected message.

This rev. ensures to always unselect messages when switching between channels.

Closes #11879
2016-05-03 10:53:30 +02:00
Aaron Bohy bbf64347e4 [FIX] mail: escape author name in messaging menu 2016-05-03 10:53:30 +02:00
Aaron Bohy 9865d3c0b7 [ADD] mail: command /leave
Required some changes for the client_action to correctly remove the left
channel from its sidebar, and switch to Inbox.
2016-05-03 10:34:41 +02:00
Aaron Bohy de6fa69774 [ADD] mail: commands support
Use the mention mechanism to autocomplete on commands (keyword /).

A first command /help has been implemented.
2016-05-03 10:34:41 +02:00
Aaron Bohy 2264378739 [ADD] im_livechat,mail: canned responses support
Use the mention mechanism of the composer to autocomplete on canned responses
(keyword :) with fuzzy search.

Directly perform the string replacement in the composer, instead of
server-side as before.

Add a menu item to access an editable list view to create and edit canned
responses.

Add two canned responses as demo data.
2016-05-03 10:34:41 +02:00
Aaron Bohy 29483ffe2e [FIX] mail: escape RegExp pattern
to prevent crashes if the user types, e.g. a \, in the partner's autocompletes
in Discuss ('Add a DM' in sidebar and 'Invite people to channel' dialog).
2016-05-03 10:34:41 +02:00
Aaron Bohy 1aa6774561 [FIX] mail: mention: close suggestions dropdown on ESC keypress 2016-05-03 10:34:40 +02:00
Aaron Bohy 11f525866f [IMP] mail: mention: don't delay local mention lookups
A 200ms delay is set on lookups for mention suggestions to prevent triggering
RPCs when the user is still typing. However, there shouldn't be a delay when
the suggestions are looked up in the prefetched suggestions.

Also fixes a bug that might occur when the user starts typing a mention which
triggers an RPC, but erase it before the RPC returns.
2016-05-03 10:34:40 +02:00
Aaron Bohy 790d84f78d [IMP] im_livechat,mail: mention in backend chat windows
The BasicComposer widget is now used in chat windows, which enables the mention
feature. This is only for the backend, as for the livechat windows in the
frontend, the composer is still a simple input.

Classname 'o_chat_input' has been renamed into 'o_chat_composer' (the root
classname of the basic composer) for uniformity in the JS and LESS code of
chat windows.
2016-05-03 10:34:40 +02:00
Christophe Simonis 431ef552b3 [MERGE] forward port of branch 9.0 up to 822966d 2016-05-02 14:44:20 +02:00
Aaron Bohy 5cca1dcb3a [FIX] mail: composer: escape RegExp pattern
to prevent crashes if the user types, e.g. a \, when mentionning someone.
2016-05-02 08:52:49 +02:00
Aaron Bohy 9174cd94d5 [FIX] mail: Discuss: channel autocomplete dropdown
The content of this dropdown must be html (for the 'Create' line). I
accidentally removed it at 33beee5.
2016-04-28 15:05:42 +02:00
Aaron Bohy 89939249e5 [IMP] mail: sidebar autocomplete: redirect to already opened DM
Before this rev., if the user clicked, in the autocomplete dropdown, on an
already opened DM, nothing happened. Now, it redirects to that DM.

Also clear the input once a partner is selected.
2016-04-28 10:56:32 +02:00
Rohan Patel 33beee5b08 [IMP] mail: Discuss: lookup in JS cache before doing RPC
When opening a new DM from the Discuss sidebar or from a chat window, and
when inviting people to a channel, first search for a match in the prefetched
partners (basically, the employees), and only perform the im_search RPC
(extending the research to all users) if there is no match.

Also sort the results by name.
2016-04-28 10:56:31 +02:00
Christophe Simonis 2dcbdd0778 [MERGE] forward port of branch saas-10 up to bb8f0f1 2016-04-25 15:48:31 +02:00
Christophe Simonis bb8f0f1fc3 [MERGE] forward port of branch saas-9 up to 4d337f7 2016-04-25 14:43:44 +02:00
Christophe Simonis 4d337f72ed [MERGE] forward port of branch 9.0 up to ac7beb3 2016-04-25 13:33:01 +02:00
Aaron Bohy 3241415a0c [FIX] mail: utils.send_native_notification doesn't exist 2016-04-25 11:31:08 +02:00
Aaron Bohy 83081cd435 [FIX] mail: chat_manager: unnecessary lookup in messages 2016-04-25 11:31:08 +02:00
Aaron Bohy f069815980 [FIX] mail: chatter: dialog's form view not ready
Since rev. 002660a9, form views are instantiated with their fields_view. This
had an impact in FormViewDialog as the inner form view instantiation was made
asynchronous. Unfortunately, an event handler was set on this form view in the
chatter, and it produced a traceback as the form view wasn't instantiated yet.
2016-04-25 11:30:51 +02:00
Tanguy Charlier d9f050f852 [FIX] mail: Avoid traceback on notification for some browsers
Before showing a chat notification, a check is performed to ensure that the browser does support
notifications. On browsers that do not support Notification (IE, android native,...), the check was wrong and
would eventually cause a traceback. This will no longer happen.
2016-04-22 15:30:11 +02:00
Olivier Dony 7b1c208d5f [MERGE] Forward-port 9.0 up to d29ca90c75 2016-04-22 13:52:14 +02:00
Aaron Bohy d29ca90c75 [FIX] im_livechat,mail: address livechat sessions with their unique ID 2016-04-22 13:20:50 +02:00
Olivier Dony ee804e1d32 [MERGE] Forward-port 9.0 up to 74d8cbc190 2016-04-21 18:05:14 +02:00
Richard Mathot cd13ea9935 [FIX] mail: race condition in mail composer
When an user sends an email from the chatter then quickly switch to
another record, it may happen that this.composer is already destroyed.

We prevent to display a traceback with this fix.
2016-04-19 17:01:44 +02:00
Mansi Gandhi be232e69da [REM] mail: subtype dropdown in chatter
The possibility to choose a subtype when logging a note was added with the
activities mechanism in CRM. However as the user should not use the chatter
but a dedicated wizard in order to do this, the dropdown is removed.

The internal subtype mechanism is kept. Only the possibility to log something
else than a note through the chatter UI has been removed.
2016-04-19 15:25:51 +02:00