Sunday, August 3, 2025
2 changes · saas-18.3
Resolved issues and error corrections
The mail activity counter in the top navigation now updates when activities are changed, not only when they are created, deleted, or reassigned. This keeps users' activity counts accurate after actions like archiving activities or changing due dates, including bulk updates.
Original PR description
Currently the systray counter is only updated at: - create - unlink - write, but only if the user changes We want to detect changes such as activities being archived or due dates being updated to properly reflect the changes as the user applies them. We now do a separate check for activity count per user before and after a write call that modifies these fields. Additionally since we now have a count we provide that as part of the bus notification so that it can be updated accurately when modifying/creation/deleting activities in batch. Common activity test utils are updated to avoid false negatives. task-4862215 Forward-Port-Of: odoo/odoo#220523 Forward-Port-Of: odoo/odoo#215880
This update prevents activity lists from applying an archive-related filter to records that do not support archiving. It helps avoid errors or missing activity information in areas such as Calendar, Mail, SMS Marketing, and Project To-Do while keeping archived activities hidden where appropriate.
Original PR description
In this forward-port [1]
`active_test=False` is replaced with `[('active', 'in', [True, False])]`
to prevent "active_test" from applying on the activities, which should
not be displayed when archived by default.
The change cannot be applied generically because not all activity mixin
models have an "active" field.
Instead the groups can define their domain depending on their individual
fields. "group domains" are conveniently already supported for use cases
like "fake" groups for todo tasks and the likes.
[1]: https://github.com/odoo/odoo/commit/1cd920a2c7ed251d5e74a890f7183a7620bc06a3