Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mass_mailing: make recipients unique by email
This commit makes the recipients of any mass.mailing res_model unique by email. The email can be read from either the email field or the partner_id.email field, if they exist, otherwise the behavior is as usual. The partner_id case requires a further loop of deduplication because partner_id.email is not stored in sale.order and read_group does not allow fetching indirect fields. Related: https://gitlab.com/ircanada/ircodoo/-/issues/2849
- Loading branch information