Sunday, December 21, 2025
1 change · master
Resolved issues and error corrections
The activity menu was adjusted so other Odoo apps can customize how activity-related actions open without duplicating shared filtering logic. This reduces maintenance effort and helps modules like Documents provide the right experience when users open activity groups.
Original PR description
The `openActivityGroup` method in `ActivityMenu` currently handles both the preparation of filters (domains, contexts) and the actual execution of the action. This coupling prevents other modules from intercepting the action execution to inject specific behaviors—such as loading a specific server-side action or specialized views—without completely overriding the method and duplicating the filter logic. This commit extracts the final execution step into a new method `executeActivityAction`. This allows extending modules (e.g., `documents`) to customize the action load (e.g., to ensure specific JavaScript hooks are initialized) while relying on the base implementation for domain and context generation. Task-5187045 Forward-Port-Of: odoo/odoo#240800 Forward-Port-Of: odoo/odoo#238377