Skip to content

[18.0][MIG] mail_activity_team#1768

Closed
CRogos wants to merge 49 commits intoOCA:18.0from
c4a8-odoo:18.0-mig-mail_activity_team
Closed

[18.0][MIG] mail_activity_team#1768
CRogos wants to merge 49 commits intoOCA:18.0from
c4a8-odoo:18.0-mig-mail_activity_team

Conversation

@CRogos
Copy link

@CRogos CRogos commented Dec 1, 2025

No description provided.

JordiBForgeFlow and others added 30 commits December 1, 2025 12:59
Currently translated at 100.0% (24 of 24 strings)

Translation: social-13.0/social-13.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_activity_team/it/
When an activity is scheduled due to automatic processes the onchanges
won't adapt the proper user team, so we could have a mismatch that
provokes an exceptions due to the designed constaints
- If a user is archived but there's an automatic activity, the team
check wouldn't locate him. We have to ensure the context.
- When the automatic activity gets a user with no team, we should set
the team to a void one as well.

TT30470
If you schedule an activity and you don't force the team as False, errors might araise.
For example, on holidays.
The user couldn't see the proper count of his own activities. It was
allways showing the team activities counter.

TT35885
Currently translated at 71.8% (23 of 32 strings)

Translation: social-15.0/social-15.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_activity_team/it/
dsolanki-initos and others added 15 commits December 1, 2025 13:50
Currently translated at 66.6% (22 of 33 strings)

Translation: social-16.0/social-16.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_team/it/
Currently translated at 66.6% (22 of 33 strings)

Translation: social-16.0/social-16.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_team/it/
Taken from the 16.0 branch after the merge of OCA#1280
which was picked for the migration of this module for 17.0 in an earlier stage.
Currently translated at 100.0% (32 of 32 strings)

Translation: social-17.0/social-17.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_activity_team/it/
Currently translated at 100.0% (34 of 34 strings)

Translation: social-17.0/social-17.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_activity_team/it/
** To Reproduce **

1. Create an activity for a team of the current user but with no specific user of for another user in the team.
2. Go to the systray activity widget. Switch to tab Team Activities.
3. Click on `1 Future`.

** Actual outcome **

The activity kanban view opens without any records.

** Expected behavior **

The activity kanban view opens with the team activity that was created in step 1.

** Technical description of the fix **

The systray widget will open the view with a domain that selects the users's activities. Thanks to a context key that is already set, we can intercept the domain and replace it with a domain on the user's teams' activities.

Backported from OCA/mail#38
Currently translated at 73.5% (25 of 34 strings)

Translation: social-17.0/social-17.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_activity_team/fr/
@CRogos CRogos mentioned this pull request Dec 1, 2025
36 tasks
@CRogos CRogos force-pushed the 18.0-mig-mail_activity_team branch 3 times, most recently from 8302829 to 3976453 Compare December 1, 2025 14:30
Camille0907 and others added 3 commits December 1, 2025 14:31
…an activity when a team is set

In [this PR](OCA#1474), we updated the module to follow the v17 changes in standard.
However it looks like the changes made are too wide: if no user is set, we indeed want to prevent the standard method to set one by default. But if a user is manually added, we want to keep it.
Here we add a context key to determine at the creation of the activity if the user should be kept or erased.
We also take [this issue](OCA#1655) into account.
@CRogos CRogos force-pushed the 18.0-mig-mail_activity_team branch from 3976453 to 816b715 Compare December 1, 2025 14:31
@CRogos CRogos force-pushed the 18.0-mig-mail_activity_team branch from 816b715 to 15f6320 Compare December 1, 2025 14:59
@CRogos
Copy link
Author

CRogos commented Dec 1, 2025

Moved here: https://github.com/OCA/mail

@CRogos CRogos closed this Dec 1, 2025
@CRogos CRogos deleted the 18.0-mig-mail_activity_team branch December 1, 2025 15:46
@StefanRijnhart
Copy link
Member

If you're interested in this module, can I ask you to review OCA/mail#101 and OCA/mail#116?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.