Skip to content

17.0 Impossible to Opt Out from fully synchronized mailing lists #1650

@btljb

Description

@btljb

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:

  1. Create a Dynamic Mailing List with Sync method Add and remove records as needed

Image

  1. Go to Recipients, open any Mailing Contact, check Opt Out and save

Image

  1. A validation error will pop up

Image

Expected behavior
Blue hint in Mailing List form is suggesting, that removal of contacts from Dynamic list can be done through Opt Out.

Image

Additional context

The error comes from mass_mailing_list_dynamic/models/mailing_contact.py

Image

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions