-
-
Notifications
You must be signed in to change notification settings - Fork 672
Open
Labels
Description
mass_mailing_list_dynamic
Cannot set OptOut for Mailing Contact
A clear and concise description of what the bug is.
To Reproduce
Affected versions: 17.0
Steps to reproduce the behavior:
- Create a Dynamic Mailing List with Sync method Add and remove records as needed
- Go to Recipients, open any Mailing Contact, check Opt Out and save
- A validation error will pop up
Expected behavior
Blue hint in Mailing List form is suggesting, that removal of contacts from Dynamic list can be done through Opt Out.
Additional context
The error comes from mass_mailing_list_dynamic/models/mailing_contact.py
The api.constrains seems to be set up correctly, but the write() function in mass_mailing_partner (another model from OCA/social, which is in dependencies for mass_mailing_list_dynamic) passes the whole list of vals instead of just the Opt Out field, which triggers this check.