Commit Graph
3649 Commits
Author SHA1 Message Date
Alexandre Kühn 3f75153ad7 [IMP] mail: introduce 'FollowerSubtypeView' model
Task-2793280

closes odoo/odoo#87011

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-29 20:21:01 +02:00
Alexandre Kühn c31a1da0ea [IMP] mail: turn "Rtc/connectedRtcSessions" into field
Task-2734101

closes odoo/odoo#85035

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-29 20:20:24 +02:00
xlu-odoo 2998cfca80 [REF] web,mail: command palette revamp
This commit simplifies the SCSS of the command palette component.

task-2748052

closes odoo/odoo#83938

Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-03-29 20:20:19 +02:00
Brieuc-brd 68c974dfad [REF] mail: ComposerSuggestedRecipientList, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#87452

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-29 12:00:18 +02:00
Alexandre Kühn d7dea4c68d [IMP] mail: turn "Rtc/pingInterval" into field
Task-2734101

closes odoo/odoo#85029

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-28 18:59:47 +02:00
Alexandre Kühn 39c778c611 [IMP] mail: create 'RtcSession/isCurrentUserInitiatorOfConnectionOffer'
This is exactly the field 'RtcSession/isConnected', but it was badly named.

Task-2734101

closes odoo/odoo#87284

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-28 17:55:20 +02:00
Sébastien Theys 3e249661af [IMP] mail: move getScrollableElement to message list model
task-2801089

closes odoo/odoo#87267

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-28 17:55:16 +02:00
Alexandre Kühn b04ea8e173 [IMP] mail: turn "RtcSession/rtcDataChannel" into field
Task-2734101

closes odoo/odoo#85024

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-28 13:55:09 +02:00
Didier (did) 6a0cbf8562 [FIX] mail: fix guard on load video
task-2806331

closes odoo/odoo#87324

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-28 12:57:02 +02:00
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
Brieuc-brd 76369d33b7 [REF] mail: ChatterTopbar, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#86461

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-25 12:39:53 +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
Sébastien Theys 4708c12ce5 [IMP] mail: remove _loadMore from message list component
Useless indirection.

Part of task-2801089

closes odoo/odoo#87117

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 17:12:22 +01:00
Brieuc-brd 9ead1efcfa [REF] mail: FollowerListMenu, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#86727

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 17:12:05 +01:00
Brieuc-brd fa278c83d8 [REF] mail: ChatterContainer, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#86331

Related: odoo/enterprise#25227
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 17:11:55 +01:00
Brieuc-brd 8b1e8899aa [IMP] mail: ChatWindowHiddenMenu, update the layout
Prior this commit, the `ChatWindowHiddenMenu` had a fixed width and the
`windowCounter` was truncated when the number was higher than 9.
Also, when the `unreadCounter` was displayed, it was partially hidden by
the chat windows.

After this commit, this element uses a fluid width and is in front of
the chat windows to correctly display the `unreadCounter` badge.

task-2781992

closes odoo/odoo#86244

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 17:11:51 +01:00
Brieuc-brd f1555eac93 [REF] mail: ChatWindowHiddenMenu, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

Part-of: odoo/odoo#86244
2022-03-24 17:11:51 +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
Sébastien Theys 648d47ede1 [IMP] mail: use message list view for guarding
Now that message list view exists, it should be used whenever possible, in
preparation of future commits.

Part of task-2801089

closes odoo/odoo#87113

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-24 12:57:25 +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 8e833f0cd2 [IMP] mail: guard WelcomeViewComponent
Task-2797754

closes odoo/odoo#86953

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 20:18:45 +01:00
Alexandre Kühn d722bfe267 [IMP] mail: guard DiscussSidebarMailboxComponent
Task-2797754

closes odoo/odoo#86815

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 20:18:41 +01:00
Alexandre Kühn 8aa97941c6 [IMP] mail: guard RtcLayoutMenuComponent
Task-2797754

closes odoo/odoo#86940

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 18:05:21 +01:00
Alexandre Kühn 3f89170c8d [IMP] mail: guard RtcInvitationCardComponent
Task-2797754

closes odoo/odoo#86938

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 18:05:17 +01:00
Alexandre Kühn 6f69dc504f [IMP] mail: guard RtcControllerComponent
Task-2797754

closes odoo/odoo#86936

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 18:05:12 +01:00
Alexandre Kühn ea0d4faa79 [IMP] mail: guard RtcCallViewerComponent
Task-2797754

closes odoo/odoo#86848

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 17:14:20 +01:00
Alexandre Kühn 403666fcc7 [IMP] mail: guard RtcCallParticipantCardComponent
Task-2797754

closes odoo/odoo#86847

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 17:14:16 +01:00
Alexandre Kühn ff47ba8dad [IMP] mail: guard PopoverViewComponent
Task-2797754

closes odoo/odoo#86845

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 17:14:11 +01:00
Alexandre Kühn beda6fc72c [IMP] mail, *: guard PartnerImStatusIconComponent
*: hr_holidays

Task-2797754

closes odoo/odoo#86844

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 17:14:07 +01:00
Alexandre Kühn f6a0636733 [IMP] mail: guard ThreadViewTopbarComponent
Task-2797754

closes odoo/odoo#86952

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:13 +01:00
Alexandre Kühn d099d45f25 [IMP] mail: guard ThreadViewComponent
Task-2797754

closes odoo/odoo#86951

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:10 +01:00
Alexandre Kühn 146e11ecc8 [IMP] mail: guard ThreadTextualTypingStatusComponent
Task-2797754

closes odoo/odoo#86950

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:06 +01:00
Alexandre Kühn 90b3ea7cfe [IMP] mail: guard ThreadPreviewComponent
Task-2797754

closes odoo/odoo#86949

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:01 +01:00
Alexandre Kühn 55286327fa [IMP] mail: guard ThreadNeedactionPreviewComponent
Task-2797754

closes odoo/odoo#86948

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:57 +01:00
Alexandre Kühn 694fe89cfc [IMP] mail, *: guard ThreadIconComponent
*: im_livechat

Task-2797754

closes odoo/odoo#86947

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:54 +01:00
Alexandre Kühn 4b5d981b47 [IMP] mail: guard RtcVideoComponent
Task-2797754

closes odoo/odoo#86946

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:50 +01:00
Alexandre Kühn 38b6e2ade8 [IMP] mail: guard RtcOptionListComponent
Task-2797754

closes odoo/odoo#86945

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:46 +01:00