Commit Graph
3658 Commits
Author SHA1 Message Date
Alexandre Kühn 00d356d54d [IMP] mail: add top-level guard on MessageComponent
Task-2793280

closes odoo/odoo#86696

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 21:29:56 +01:00
Alexandre Kühn 9f7f8b7971 [IMP] mail: guard ActivityBoxComponent
Task-2797754

closes odoo/odoo#86702

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-18 20:40:48 +01:00
Alexandre Kühn 272292e4f6 [IMP] mail: guard ActivityComponent
Task-2797754

closes odoo/odoo#86701

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-18 20:40:44 +01:00
stefanorigano (SRI) 804de0c7e6 [FIX] mail: o_Activity_userAvatar aspect-ratio
This commit fixes an issue causing the activity's avatar image to exceed
the available vertical space when in portrait mode.

The avatar's width/height are now fixed and its pic is set to cover the
available room only.

task-2795252

closes odoo/odoo#86583

X-original-commit: efbff4dae62c5c72541be96045cc96e3acf46628
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-18 18:59:44 +01:00
tsm-odoo d9ecd32197 [IMP] mail: introduce a new way to seed test data
This PR prepares the ground for the new env one. The objective is to stop
relying on 'this' during tests. In order to do this, a new way to seed data
has been introduced.

task-2792108

closes odoo/odoo#86447

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-18 18:59:40 +01:00
Louis Wicket (wil) b9fd435b99 [MOV] mail, *: move tests
* = hr_holidays, im_livechat, sms, snailmail, website_livechat,
    website_slides

Move tests files into `static/tests`.

Task-2759560

closes odoo/odoo#86581

Related: odoo/enterprise#25375
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-18 16:07:29 +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
tsm-odoo 2538a71944 [IMP] mail, *: make mail tests stop relying on this
*: hr_holidays, im_livechat, mail, mail_bot, sms, snailmail, test_mail,
website_livechat, website_slides.

Mail tests are currently relying on this during tests to make env, widget,
data available. We don't wan't to add magic keys to this anymore.

task-2792108

closes odoo/odoo#86559

Related: odoo/enterprise#25341
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-17 19:30:08 +01:00
Alexandre Kühn 6a4b20beb4 [IMP] mail: remove 'MessageComponent/threadView' getter
Task-2793280

closes odoo/odoo#86449

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-17 19:29:56 +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
Brieuc-brd b2fa832fb8 [IMP] mail: AttachmentViewer, keep consistency with classes
Prior this commit,`o_AttachmentViewer_toolbar`,
`o_AttachmentViewer_viewIframe` and buttons used CSS properties with
arbitrary values.

To keep the layout consistent and remove more raw css, this commit uses
component and utility classes instead.

task-2781992

closes odoo/odoo#85772

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

task-2781992

Part-of: odoo/odoo#85772
2022-03-17 18:37:00 +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
Bruno Boi 755cd98853 [MOV] web: move position_hook up one folder
Part-of: odoo/odoo#83646
2022-03-17 10:31:30 +01:00
Bruno Boi 615788fbc9 [IMP] web: remove comp.el usage in useposition
As component.el is removed: see https://github.com/odoo/owl/blob/master/CHANGELOG.md#9-componentel-is-removed

Part-of: odoo/odoo#83646
2022-03-17 10:31:29 +01:00
Brieuc-brd 49f8c8c8b9 [REF] mail: Chatter, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#86279

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

task-2781992

closes odoo/odoo#86265

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

task-2781992

closes odoo/odoo#86173

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

task-2781992

closes odoo/odoo#86168

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

task-2781992

closes odoo/odoo#85940

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-16 18:50:56 +01:00
Brieuc-brd b945d08c53 [REF] mail: AttachmentCard, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2781992

closes odoo/odoo#85592

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-16 18:50:51 +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
Sébastien Theys 4d5652539a [FIX] mail: restore scroll in discuss app
min-height 0 is necessary for flex elements to properly shrink smaller than
their content. It was missing on this newly introduced parent.

Follow up on https://github.com/odoo/odoo/commit/cbe1bc809538f690115e1632448258663e1f52e4

task-2793274

closes odoo/odoo#86405

X-original-commit: 54df143917ed002190f5f628ce9bbc6840b4efd2
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-16 13:16:25 +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
Alexandre Kühn aa879efef8 [IMP] mail: turn 'ChatWindow/newMessageFormInputPlaceholder' into field
Task-2793280

closes odoo/odoo#86373

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-14 17:28:50 +00:00
Alexandre Kühn 7269d9e4f8 [IMP] mail: turn 'AttachmentViewer/imageStyle' into field
Task-2793280

closes odoo/odoo#86371

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-14 17:28:47 +00:00
Alexandre Kühn 371c28a8ba [IMP] mail: turn Activity/noteAsMarkup as field
Task-2793280

closes odoo/odoo#86370

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-14 17:28:44 +00:00
Didier (did) 1b7fb828e0 [FIX] mail: allow user to delete other's attachments again
Before this PR, only author of the message and admin could delete attachments
inside the chatter.
This behavior is now restricted to the channels and allow users to delete
attachments inside the chatter.

task-2753295

closes odoo/odoo#86302

X-original-commit: 5934dc08b32b422a11324743148083d4daa34350
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-14 10:38:15 +00:00
Louis Wicket (wil) 24a19a10c9 [IMP] mail: delete time model, add clock and clock watcher models
The Time model is deleted and replaced with the new Clock model. The
differences are that there can be several clocks, whereas Time was a
singleton, and that a clock must define the frequency at which it
updates.

The new model ClockWatcher is added to model a record that makes use of
a clock. This is currently useful for the clocks to set or clear intervals
as needed.

closes odoo/odoo#86219

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-14 10:38:11 +00:00
Alexandre Kühn 94d0c266fd [IMP] mail: turn "RtcSession/connectionRecoveryTimeout" into field
Task-2734101

closes odoo/odoo#85027

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-14 10:37:57 +00:00
Alexandre Kühn 714854a9cb [IMP] mail: turn "RtcSession/broadcastTimeout" into field
Task-2734101

closes odoo/odoo#85020

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-11 17:04:50 +00:00
Alexandre Kühn afa782c689 [IMP] mail: turn "UserSetting/timeouts" into field
Task-2734101

closes odoo/odoo#85023

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-11 11:40:46 +00:00
Sébastien Theys 412c007e58 [FIX] mail: display icon for public channels
task-2789208

closes odoo/odoo#86221

X-original-commit: 8a6493db68a9156c0ed745b019749fcd97e64c1c
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-10 19:10:56 +00:00
tsm-odoo 1e828a14ec [IMP] mail: get closer from python model definition in test setup
*: hr, hr_holidays, im_livechat, mail, snailmail, test_mail, website_livechat,
website_slides.

This commit will remove the need to duplicate models definition for
test purposes. Indeed, for now, we need to mock the model definitions
on the client side. Those models definitions are often very different
from the ones found on the server.

This approach will allow us :
	- to ease model definitions during tests
	- to get closer from the real models

task-2767820

closes odoo/odoo#84828

Related: odoo/enterprise#24486
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-10 18:19:59 +00:00
Ipsita Borisagar 2cd3484de9 [FIX] mail, test_discuss_full: add guests name into group dm name
Before this commit:

In discuss, the group DM default name does not contain any guest names in it.

After this commit:

Group DM default name will also take guest names along with other user names.

Task-2664859

closes odoo/odoo#86130

X-original-commit: 41f4c5741097b09c372406bbbd5364314bff6d1b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-09 16:13:06 +00:00
Didier (did) 5a3cc5e307 [FIX] mail: include is_main inside the convertData
task-2783076

closes odoo/odoo#86119

X-original-commit: 0e4f074b9894ca528b3d1a719918f33c39fd6a6c
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-09 15:19:00 +00:00
stefanorigano (SRI) b41f900bd8 [FIX] mail: remove oi classes leftovers
During 28f910f some `oi` utility-classes that were supposed to be
removed have been forgotten, causing `fa` icons to don't be rendered
properly.

This commit will remove the unnecessary classes solving the render
issues.

task-2790138

closes odoo/odoo#86102

Related: odoo/enterprise#25128
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-09 14:08:41 +00:00