Commit Graph
4030 Commits
Author SHA1 Message Date
xlu-odoo 37855ec266 [REF] mail: rtcCallParticipantCard, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2842691

closes odoo/odoo#91298

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 14:37:49 +02:00
Alexandre Kühn b65e6e3e16 [FIX] mail: error when editing record after removing followers
Before this commit:

BasicModel.localdata is not getting updated after follower removed

After this commit:

BasicModel.localdata is getting updated after follower removed

Task-2810734

closes odoo/odoo#91928

X-original-commit: c5da228
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-25 12:45:59 +02:00
Alexandre Kühn 3a844d8132 [FIX] mail: proper hover feedback of message action list buttons
Follow-up of https://github.com/odoo/odoo/pull/90893

Improvements of message action list introduced a gap of clickable
part of button between button and the container of buttons.

This commit fixes the issue by removing this gap.

Also fixes an issue where the icon buttons were too small in mobile.

Task-2862366

closes odoo/odoo#92196

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:11:10 +02:00
Sébastien Theys f2877f711a [IMP] mail: introduce and clean follower views
Part of task-2810734

closes odoo/odoo#92193

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:11:06 +02:00
Sébastien Theys 677eee90a9 [FIX] mail: fix potential issues with notification request
This patch was previously defined globally, but it has been removed at some
point. This absence prevents from running some tests that relied on it when the
current browser value does not match what the test is expecting.

Part of task-2810734

Part-of: odoo/odoo#92193
2022-05-24 19:11:06 +02:00
Ipsita Borisagar 70f844e7a1 [IMP] mail: appropriate padding around chatbox search bar
Set appropriate padding around the chatbox search bar and aligned it with the
header content.

Task-2844934

closes odoo/odoo#91900

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-24 19:10:48 +02:00
Carlos Valverde f429502d92 [IMP] mail: discuss_sidebar design revamp
This commit improves the design of the `_quickSearch` component, by
adapting its design to the logic of Bootstrap's `form-control` class.

Task-2823729

closes odoo/odoo#88710

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:10:44 +02:00
Carlos Valverde 661f303e7c [REF] mail: discuss_sidebar scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2823729

Part-of: odoo/odoo#88710
2022-05-24 19:10:44 +02:00
xlu-odoo e5e997ea96 [REF] mail: rtcCallViewer, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2835842

closes odoo/odoo#90407

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 18:10:26 +02:00
xlu-odoo e427dad102 [REF] mail: rtcInvitationCard, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2853300

closes odoo/odoo#91537

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 17:08:47 +02:00
Carlos Valverde a5cd14ec3a [REF] mail: discuss_sidebar_category_item scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2833744

closes odoo/odoo#88925

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 17:08:44 +02:00
Carlos Valverde 9b7ac5980b [IMP] mail: user-select cross-browser compatibility
This commit improves cross-browser compatibility by adapting the css
statement to Safari's Webkit syntax.

Task-2825261

Part-of: odoo/odoo#88925
2022-05-24 17:08:43 +02:00
Carlos Valverde 9ee2f5472a [REF] mail: discuss_sidebar_category scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2825261

Part-of: odoo/odoo#88925
2022-05-24 17:08:43 +02:00
Didier (did) 0b1846bb46 [IMP] mail: display channel invite group restriction
Before this PR, nothing warned the user that the invitation link was restricted to
a user group.

task-2818094

closes odoo/odoo#88562

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-23 17:31:45 +02:00
Zelong Lin 659c61219f [REF] mail: use tracking models rather than fields
Introducing tracking_value and tracking_value_item models for tracking value.

task-2817111

closes odoo/odoo#88547

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-23 17:31:42 +02:00
FrancoisGe ac66c26097 [IMP] web: CP add custom placeholder by namespace
This commit adds the possibility to have a custom placeholder in the
command palette depending on the namespace.

closes odoo/odoo#91947

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-05-23 08:30:04 +02:00
tsm-odoo ec532560d9 [IMP] mail: move discuss widget remaining logic to discuss_container
This PR prepares the ground for the one introducing the new environment in the discuss
app. Indeed, the discuss widget will be removed since it was used as an action. The discuss container
will instead be added to the action registry.  Now that the logic has been moved to the discuss_view
model, we can move the logic inside the init function to the discuss_container setup.

task-2582313

closes odoo/odoo#91890

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-20 20:14:16 +02:00
Didier (did) 97dcefc91a [IMP] mail: remove isDisabled props for FollowerListMenu component
closes odoo/odoo#91616

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-20 13:15:21 +02:00
Brieuc-brd 192b9258c2 [IMP] mail: RtcActivityNotice, increase visibility
This commit improves the layout of the `o_RtcActivityNotice_button` to
increase its visibility.

task-2853027

closes odoo/odoo#91289

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-20 13:15:15 +02:00
Brieuc-brd 2a6956785e [REF] mail: RtcActivityNotice, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2853027

Part-of: odoo/odoo#91289
2022-05-20 13:15:14 +02:00
Alexandre Kühn 8e2625c8ee [IMP] mail: introduce view models (step 9)
This commit introduces models that define records being 1:1 map with components,
as a step to move further to having essentially all business code in models.

Having code in models is desirable to have very maintainable code, thanks to
robust and declarative code with an ORM-like architecture.

Task-2831082

closes odoo/odoo#91698

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 23:54:39 +02:00
Jigar Patel e1e32870a3 [IMP] mail: Allow to easily override message post data
Part-of: odoo/odoo#91714
2022-05-18 22:56:45 +02:00
imanie383 003ff45f75 [FIX] mail: new messages extra domain
A default MAX(id) was added in the extraDomain when there are no messages
to create it. This validation already existed but was omitted in the
refactoring - https://github.com/odoo/odoo/pull/57061

Current behavior before PR:

If there are no messageIds, the method loadNewMessages returns id > null
and this domain returns 0 records

https://github.com/odoo/odoo/blob/7d992af9561c499ef1912453f3b697bad18e441f/addons/mail/static/src/models/thread_cache/thread_cache.js#L55

Desired behavior after PR is merged:

Create the extraDomain with a default MAX(id) when there are no messages
to create it and continue with the normal flow of loadMessages

closes odoo/odoo#91701

X-original-commit: dad6595ab08ccacefa1373a3fc97a729907d7d32
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 22:56:40 +02:00
Nemael 3303afec66 [IMP] mail: improve o_MessageActionList design
Task-2793394

closes odoo/odoo#90893

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 22:56:33 +02:00
Aaron Bohy ab4322699d [FIX] mail: can save/discard suggested recipient dialog
Since the migration from owl1 to owl2, a crash occured when clicking
save or discard in the partner dialog opened from mail composer's
suggested recipient.

This commit fixes the issue by simplifying the way we open that
dialog. With owl2, we introduced a standaloneAdapter which allows
to directly instantiate legacy dialogs inside owl components.

Task 2817547

closes odoo/odoo#91671

X-original-commit: 0c397eacb8784e2a127b1371f3e787dbccbda068
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 17:09:40 +02:00
Brieuc-brd 522548f4ad [FIX] mail: ChatWindow hidden in mobile
The commit 6bf4d3cdceeb972733c1f680f2ad8a11495e6e9c
introduces an issue where the ChatWindow was hidden by the MessagingMenu
in mobile.

This commit fixes this issue.

task-2857078

closes odoo/odoo#91665

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 17:09:32 +02:00
tsm-odoo 52d6089e1a [IMP] mail: replace env.browser by wowl browser
This PR prepares the ground for the one introducing the new environment in the discuss app.
Indeed, switching from `env.browser` to the wowl `browser` makes a lot of noise in the main
PR. In order to reduce this noise, this change is done now.

task-2582313

closes odoo/odoo#91622

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-18 13:08:22 +02:00
Brieuc-brd 2ad762a04f [REF] mail: RtcVideo, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2855977

closes odoo/odoo#91559

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 13:08:18 +02:00
Sébastien Theys 2825af7623 [IMP] mail, test_discuss_full: only return ids of public partners
Other data are not actually used. This will improve performance a bit (less
queries, less data to return) until the need to return this list goes away (it
requires a bigger refactoring).

task-2847983

closes odoo/odoo#91576

X-original-commit: 61e472aa35ac825553144fd9a80fbf62e3e8b5e1
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-05-18 12:00:46 +02:00
Brieuc-brd 5a2462fd6a [IMP] mail: Composer, adapt vertical alignment
Prior to this commit, the height of the `ComposerTextInput` was not the
same as the avatar height, which created an alignment inconsistency.

This commit adjusts the alignment to fix this inconsistency.

task-2852255

closes odoo/odoo#90956

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 11:59:58 +02:00
Brieuc-brd 00f058878d [IMP] mail: EmojiList, balance the padding
This commit balances the padding around the emoji grid.

task-2817875

closes odoo/odoo#88128

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 11:59:54 +02:00
Brieuc-brd bb8410a4c6 [REF] mail: EmojiList, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2817875

Part-of: odoo/odoo#88128
2022-05-18 11:59:53 +02:00
Ipsita Borisagar c8db947024 [IMP] mail: activity keyboard navigation improvement
PURPOSE

Improve some mail activity issues regarding keyboard navigation.

SPECIFICATIONS

When done an activity using the record list view, allowing user ENTER key
support on "Done" or "Done and Schedule Next" button to post feedback and
mark the activity as done.

Task-2528109

closes odoo/odoo#82879

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-18 11:59:48 +02:00
Brieuc-brd 91f18d7ec6 [REF] mail: RtcInvitations, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2855524

closes odoo/odoo#91536

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-17 14:44:01 +02:00
tsm-odoo 2810d789ee [IMP] mail: move discuss widget logic into model part2
This PR prepares the ground for the one introducing the new environment in the discuss
app. Indeed, the discuss widget will be removed since it was used as an action. This widget
basically handle two things: rainbowman on empty inbox/push state. This second part focuses
on the push state aspect.

task-2582313

closes odoo/odoo#91450

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 18:35:11 +02:00
Brieuc-brd 8f6da26b1c [REF] mail: RtcController, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2853092

closes odoo/odoo#91333

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 18:35:07 +02:00
Sébastien Theys 036b0cad07 [FIX] mail: allow only one selected message at the same time
task-2784914

closes odoo/odoo#91468

X-original-commit: 770590c75af832eab777b1db44094187b6443804
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-16 16:24:58 +02:00
Alexandre Kühn c53ddf00e2 [IMP] mail: convert timer utils into model
Better integration with the rest of the code.

Task-2831082

closes odoo/odoo#90726

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-16 16:24:47 +02:00
Brieuc-brd 9c5bae4064 [REF] mail: Composer, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2812455

closes odoo/odoo#87439

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 16:24:42 +02:00
Brieuc-brd 427b07dc0e [REF] mail: ComposerTextInput, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2817677

Part-of: odoo/odoo#87439
2022-05-16 16:24:42 +02:00
tsm-odoo 8bc94487c2 [IMP] mail: move discuss widget logic into model part1
This PR prepares the ground for the one introducing the new environment in the discuss
app. Indeed, the discuss widget will be removed since it was used as an action. This widget
basically handle two things: rainbowman on empty inbox/push state. This first part focuses on
moving the rainbow man logic to the discussView model.

task-2582313

closes odoo/odoo#91365

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 15:09:52 +02:00
Brieuc-brd 8ab865e7f6 [REF] mail: MessagingMenuTab, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2852519

closes odoo/odoo#91236

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 15:09:48 +02:00
Brieuc-brd ee2a497b9a [REF] mail: ThreadViewTopbar, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2850473

closes odoo/odoo#91116

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 15:09:44 +02:00
Brieuc-brd 0e35332fc2 [REF] mail: MessagingMenu, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2836043

closes odoo/odoo#90129

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 15:09:40 +02:00
Louis Wicket (wil) 301076e2ce [FIX] mail: fix default value of date in clock model
The first date should be the date of the record creation instead of the
time the model was initialized.

closes odoo/odoo#91372

X-original-commit: 2635b29193ba16d85f62aabd8bddd7d7692007f0
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-05-16 13:57:06 +02:00
Thanh Dodeur 806fcc2a38 [IMP] mail: place the rtc overlay inside the participant card frame
Before this commit, the overlay with status icons of the participant
card was at the border of the whole card, which made it difficult to
see in some situations, like when focusing on one participant.

This commit places the overlay over the main frame of the card.

part of task-2692836

closes odoo/odoo#91297

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 13:57:02 +02:00
Thanh Dodeur 305bf22fe9 [REF] mail: move rtc session remote track update to the right model
part of task-2692836

closes odoo/odoo#91296

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-16 13:56:58 +02:00
Thanh Dodeur d33188e9a6 [REF] mail: move session stream update to the right model
part of task-2692836

Part-of: odoo/odoo#91296
2022-05-16 13:56:58 +02:00
Thanh Dodeur 5799880ad0 [REF] mail: move transceiver ordered names to model field
part of task-2692836

Part-of: odoo/odoo#91296
2022-05-16 13:56:57 +02:00
Fabio Barbero fc79bd1e0e [IMP] sm modules: "neutralise" genders
Purpose
=======
Change all masculine nouns in Odoo's code to neutral nouns (when
possible), making sure that demo data is correctly handled. This is
particularly important since our code is open source, and nowadays lots
of machine learning models are trained on open source repositories.

With this small change we contribute to training more "fair" models, and
teaching models that "employee" or "user" != "he".

This also affects some text visible by the user, hence making it more
inclusive for Odoo users.

Task-2853046

closes odoo/odoo#91292

Related: odoo/enterprise#27302
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-05-16 10:09:32 +02:00