Commit Graph
511 Commits
Author SHA1 Message Date
Alexandre Kühn 939d05b429 [IMP] mail: introduce MailTemplateView
Task-2793280

closes odoo/odoo#87213

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-25 16:51:49 +01:00
Alexandre Kühn bc4f8e577e [IMP] mail: turn 'ComposerView/extraSuggestions' into field
Task-2793280

closes odoo/odoo#87095

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-25 15:54:34 +01:00
Alexandre Kühn 0597ba1fe8 [IMP] mail: turn 'MessageView/isActive' into field
Task-2793280

closes odoo/odoo#87001

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-25 15:54:31 +01:00
Alexandre Kühn 2ebb9fc025 [IMP] mail: turn 'MessageAuthorPrefixView/thread' into field
Task-2793280

closes odoo/odoo#86989

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-25 15:54:27 +01:00
Alexandre Kühn 7544078420 [IMP] mail: turn "RtcSession/isConnected" into field
Task-2734101

closes odoo/odoo#85032

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-25 12:39:50 +01:00
Alexandre Kühn 714948cb97 [IMP] mail: introduce 'MessageView/isHovered' field
Task-2793280

closes odoo/odoo#86694

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 20:47:46 +01:00
Alexandre Kühn c44f35f61d [IMP] mail: turn 'MessageAuthorPrefixView/message' into field
Task-2793280

closes odoo/odoo#86980

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 18:58:26 +01:00
Alexandre Kühn 6b0a59c951 [IMP] mail: turn 'MessageView/isClicked' into field
Task-2793280

closes odoo/odoo#86966

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 18:10:47 +01:00
Alexandre Kühn 1b5fa72056 [IMP] mail: 'ComposerSuggestion' + 'ComposerView/mainSuggestions'
Task-2793280

closes odoo/odoo#87092

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-24 13:57:46 +01:00
Alexandre Kühn d801553c53 [IMP] mail: introduce 'MessageAuthorPrefixView' model
Task-2793280

closes odoo/odoo#86973

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 12:57:20 +01:00
Alexandre Kühn aca77f18b8 [FIX] mail: do not show chat window hidden menu in mobile
Task-2795429

closes odoo/odoo#86551

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-24 12:57:12 +01:00
Alexandre Kühn af9b2f5657 [IMP] mail: turn 'MessageView/isSelected' into field
Task-2793280

closes odoo/odoo#86465

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 12:57:08 +01:00
dja-odoo 472fac659e [IMP] mail: limit followers edition/removal for users with read access
Before this commit, if the user has read only access to a record:

 - User could see 'Add Followers' button, which raised AccessError
 - User could see edit and remove icons but performing these actions
  for followers other than one related to logged in user, it also
  raised AccessError.

With this commit, we are restricting it based on the user rights, if
the user has read only access to a record:

 - 'Add Followers', subtype edition(pencil icon) and follwer removal
   buttons will be visible only for the follower related to logged in
   user, not for others. This way we can avoid the unexpected
   AccessErrors.

Note that if user is having write access for the record, nothing
changes.

task-id-2447776

closes odoo/odoo#70575

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-03-24 12:56:52 +01:00
Sébastien Theys df30f9fba3 [FIX] mail: reintroduce scroll to top on posting message in chatter
The feature was broken in https://github.com/odoo/odoo/commit/80d74e7ee0eab83dc5100e0776df09d04b882fec#diff-14904a101d1c0589d79515df7065aeeaaf0d4cdeaff9a4748ff0331c481efe8eL275
where `loadNewMessages` was mistakenly removed.

But this call is useful to make sure newly posted messages (from other users)
are fetched, as well as having the side-effect to scroll to the newly posted
message of the current user in particular.

closes odoo/odoo#87114

X-original-commit: 1550e08945597f3a49a7c8adec3cc0c2d9afdf82
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-23 22:14:07 +01:00
bit-odoo 0f98a416e5 [FIX] mail: attachment viewer download and print buttons for guest
Before this commit:

Attachment viewer download and print buttons not working for guests.

After this commit:

Attachment viewer download and print buttons will work for guests.

Task-2664842

closes odoo/odoo#87025

X-original-commit: 191a4b21a446d17a5090481b16f3de56a57f611e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 21:11:06 +01:00
Alexandre Kühn 3de3573f1e [IMP] mail: remove useless guard 'Thread/hasComposerThreadTyping'
Thread/hasComposerThreadTyping is always set to boolean, so never `undefined`.

Task-2793280

closes odoo/odoo#86965

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 21:11:02 +01:00
Alexandre Kühn 9c2890ac86 [IMP] mail: turn 'ComposerView/hasHeader' into field
Task-2793280

Part-of: odoo/odoo#86965
2022-03-23 21:11:02 +01:00
Alexandre Kühn f89aa1e548 [IMP] mail: turn 'ComposerView/hasThreadName' into field
Task-2793280

closes odoo/odoo#86470

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:36:54 +01:00
Louis Wicket (wil) ee9759a144 [MOV] mail, *: move utils files up
* = calendar, hr, hr_holidays, im_livechat, note, sms, snailmail,
test_mail, website_livechat, website_slides
Task-2759586

closes odoo/odoo#86791

Related: odoo/enterprise#25491
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:39:56 +01:00
Sébastien Theys 57ac4a4dca [IMP] mail: prevent useless render of message view
Avoid observing the last message view just for checking the state of self.

task-2800990

closes odoo/odoo#87003

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 00:29:26 +01:00
Alexandre Kühn e55ec3c89a [IMP] mail: turn 'SuggestedRecipientInfo/titleText' into field
Task-2793280

closes odoo/odoo#86439

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 17:56:52 +01:00
Thanh Dodeur 4c28a6fd0a [FIX] mail: ensures the usage of rtc session id for type consistency
Before this commit, mismatching types between String and Number would
cause inserts to register a change.

`rtc.js` used `rtcSession.peerToken`(String) and `rtcSession.id`(number)
interchangeably, this commit fixes this issue by favoring the usage
of `rtcSession.id` and `mail.RtcSession` when possible.

closes odoo/odoo#86580

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 15:00:01 +01:00
Alexandre Kühn 10f3138d54 [IMP] mail: turn 'ThreadView/hasComposerThreadName' into field
Task-2793280

closes odoo/odoo#86469

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:59:53 +01:00
Alexandre Kühn fa6d67f2bc [IMP] mail: turn 'ComposerView/hasFooter' into field
Task-2793280

closes odoo/odoo#86468

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:59:50 +01:00
Alexandre Kühn 00d595af76 [IMP] mail: turn 'MessageView/authorAvatarTitleText' into field
Task-2793280

closes odoo/odoo#86458

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:00:56 +01:00
Alexandre Kühn d60f8e3293 [IMP] mail: turn 'Messaging/isNotificationBlocked' into field
Task-2793280

closes odoo/odoo#86453

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:00:52 +01:00
Alexandre Kühn 5c5ef04aa3 [IMP] mail: turn 'Message/prettyBodyAsMarkup' to field
Task-2793280

closes odoo/odoo#86451

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:00:48 +01:00
Alexandre Kühn d62e7d9af4 [IMP] turn "Message/datetime" into field
Task-2793280

closes odoo/odoo#86448

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:00:44 +01:00
Alexandre Kühn 71775e32bb [IMP] mail: turn 'SuggestedRecipientInfo/dialogText' into field
Task-2793280

closes odoo/odoo#86440

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 14:00:41 +01:00
Alexandre Kühn acd5c98c6e [IMP] mail: 'MessagingMenu/mobileNewMessageInputPlaceholder'
Task-2793280

closes odoo/odoo#86452

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 12:11:47 +01:00
Alexandre Kühn 5a0ff3f499 [IMP] mail: turn 'ComposerView/hasThreadTyping' into field
Task-2793280

closes odoo/odoo#86457

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 11:12:16 +01:00
Alexandre Kühn e15f00da76 [IMP] mail: turn 'Discuss/orderedMailboxes' into field
Task-2793280

closes odoo/odoo#86444

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-21 11:12:12 +01:00
Alexandre Kühn 73db2d735f [IMP] mail: turn 'MessageView/hasAuthorOpenChat' into field
Task-2793280

closes odoo/odoo#86466

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 15:11:45 +01:00
Alexandre Kühn 642cec94c4 [IMP] mail: turn 'Message/shorttime' into field
Task-2793280

closes odoo/odoo#86459

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 15:11:41 +01:00
Alexandre Kühn c0c25fb14e [IMP] mail: turn 'Message/trackingValues' into field
Task-2793280

closes odoo/odoo#86450

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 12:26:28 +01:00
Alexandre Kühn a0cedbde0d [IMP] mail: turn 'Message/avatarUrl' into field
Task-2793280

closes odoo/odoo#86446

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 12:26:24 +01:00
Alexandre Kühn dea2da8b25 [IMP] mail: turn 'Discuss/addChatInputPlaceholder' into field
Task-2793280

closes odoo/odoo#86443

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-17 18:37:14 +01:00
Louis Wicket (wil) e16976ddfc [IMP] mail, *: move up model files
Move model definition files from `models/thing/thing.js` to
`models/thing.js` and remove the now empty intermediate directory.

Task-2759582
 * = calendar, crm_livechat, hr, im_livechat, mail_bot, sms, snailmail,
     website_livechat, website_slides

closes odoo/odoo#86464

Related: odoo/enterprise#25291
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-17 11:27:59 +01:00
Louis Wicket (wil) df147ac6f2 [IMP] mail, *: move model tests into/static/tests
* : mail_bot, website_livechat
Task-2759560

Part-of: odoo/odoo#86464
2022-03-17 11:27:59 +01:00
Sébastien Theys b8d57d06bc [IMP] mail: remove unused o-attachment-removed
The event is no longer bound since 0df4b0029b

And it's fine in this case : the form view does not need to be updated when
removing a pending attachment from composer.

closes odoo/odoo#86491

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-16 17:04:45 +01:00
Alexandre Kühn 693f77c124 [IMP] mail: turn 'ComposerView/isCompact' into field
Task-2793280

closes odoo/odoo#86467

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 17:04:38 +01:00
Alexandre Kühn e8206b4dfa [IMP] mail: turn 'ThreadView/hasComposerThreadTyping' into field
Task-2793280

closes odoo/odoo#86455

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 17:04:32 +01:00
tsm-odoo b15959cd95 [IMP] mail, *: make start method handle cleanup
*: calendar, hr, hr_holidays, im_livechat, mail, mail_bot, note, sms, snailmail,
website_livechat, website_slides.

This commit prepares the removal of beforeEach function in the
mail test suite. Cleanup was relying on beforeEach adding widgets,
components, unpatch method 'this'. We need to clean things up without
using either beforeEach or 'this'.

task-2792108

closes odoo/odoo#86526

Related: odoo/enterprise#25326
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-16 16:07:58 +01:00
Alexandre Kühn 9ddc046e24 [IMP] mail: turn 'ComposerView/hasFollowers' into field
Task-2793280

closes odoo/odoo#86472

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 16:07:13 +01:00
Alexandre Kühn f8633598c8 [IMP] mail: turn 'Discuss/addChannelInputPlaceholder' into field
Task-2793280

closes odoo/odoo#86442

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 16:07:09 +01:00
Alexandre Kühn df8d0b5ea3 [IMP] mail: turn 'ComposerView/currentPartnerAvatar' into field
Task-2793280

closes odoo/odoo#86438

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 13:16:32 +01:00
Alexandre Kühn 10adbacd8a [IMP] mail: turn 'ChatWindow/shiftPrevText' into field
Task-2793280

closes odoo/odoo#86435

Signed-off-by: Ooming <wil@odoo.com>
2022-03-16 13:16:29 +01:00
Didier (did) 2b03a1869e [IMP] mail: add a copy link button
This PR add a copy link button to the invitation link inside the invite people
panel.

task-2664866

closes odoo/odoo#86257

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-16 13:16:21 +01:00
Alexandre Kühn 1520a98d69 [IMP] mail: turn 'ChatWindow/shiftNextText' into field
Task-2793280

closes odoo/odoo#86374

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-15 13:22:03 +01:00
Lucas Lefèvre c5b28f5163 [REF] mail: turn 'Composer/placeholder' into field
This commit moves the logic associated with the composer placeholder for two
reasons:

- move business logic from components to models
- allow to easily override the placeholder in other module.
  This is uselfull for the feature allowing to leave comments on a spreadsheet.

Task 2638411 (spreadsheet comments)
Task 2793280

closes odoo/odoo#86381

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-14 17:29:00 +00:00