Daily updates from Odoo
Thursday, June 11, 2026
1 change
Code cleanup and technical improvements
This update streamlines how 'Activity Done' messages are generated within Odoo. By separating the message creation process, it now allows for easier customization by other modules without impacting core functionality. This enhances flexibility and reduces potential conflicts.
Original PR description
The `_action_done` method in `mail.activity` currently handles multiple responsibilities simultaneously, including permissions, attachments, message posting, and archiving. This commit extracts the chatter message generation logic into a dedicated `_generate_done_message` method. This allows inheriting models to easily override, customize, or completely bypass the generic 'Activity Done' message without duplicating or interfering with the core completion and archiving logic. Task: 6127862 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr