Skip to content

[18.0][ADD] mail_activity_reassign_on_archive: New module#165

Open
rejamen wants to merge 2 commits intoOCA:18.0from
rejamen:18.0-add-mail_activity_reassign_on_archive
Open

[18.0][ADD] mail_activity_reassign_on_archive: New module#165
rejamen wants to merge 2 commits intoOCA:18.0from
rejamen:18.0-add-mail_activity_reassign_on_archive

Conversation

@rejamen
Copy link
Copy Markdown

@rejamen rejamen commented Mar 28, 2026

This module enhances user archiving by preserving activities instead of deleting them.

When a user is archived in standard Odoo, all their assigned activities are deleted. This module provides an option to reassign those activities to a designated user instead.

Features:

  • Configure a fallback user to receive reassigned activities
  • Track the original assignee on reassigned activities
  • Optionally restore activities when a user is unarchived

@rejamen rejamen force-pushed the 18.0-add-mail_activity_reassign_on_archive branch 2 times, most recently from aaf1a2c to 48c1592 Compare March 29, 2026 09:54
rejamen added 2 commits March 29, 2026 12:32
This module enhances user archiving by preserving activities instead of
deleting them.

When a user is archived in standard Odoo, all their assigned activities
are deleted. This module provides an option to reassign those activities
to a designated user instead.

Features:
- Configure a fallback user to receive reassigned activities
- Track the original assignee on reassigned activities
- Optionally restore activities when a user is unarchived

Signed-off-by: Reinaldo J. Menendez <rejamen@gmail.com>
… 18.0

Replace assertNoMail with assertNotSentEmail to fix test failures.

Odoo 18.0's assertNoMail method has a bug where it tries to access
mail_message.message_id in the finally block even when mail_message
is None, causing AttributeError.

assertNotSentEmail properly handles None message_id and provides
the same validation for checking that no emails were sent.

Signed-off-by: Reinaldo J. Menendez <rejamen@gmail.com>
@rejamen rejamen force-pushed the 18.0-add-mail_activity_reassign_on_archive branch from 48c1592 to 280d3b4 Compare March 29, 2026 10:32
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.

1 participant