Saturday, November 2, 2024
1 change · 17.0
Enhancements to existing features
Automated activity rules can now choose responsible users from related records, not only from the main record. This makes mail activity automation more flexible for business workflows while providing clearer errors when a configured field path is invalid.
Original PR description
Enhance _run_action_next_activity to support dynamic field access across related models Updated activity_user_field_name to allow access to fields not just in the current model, but in related models as well. Implemented dynamic field resolution using dot notation to navigate through related fields. Added robust error handling for invalid field paths with clear validation errors. Ensured compatibility with nested field structures by splitting and iterating over field names. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr