[FIX] mass_mailing_partner: Unsubscribe should not unlink the subscription.

Before, on the backend if you check the `opt_out` checkbox and saving on a `mailing.contact`, the entire row (`mailing.contact.subscription`) would be unlinked.  Combined with `mass_mailing_list_dynamic` this means the contact would just be re-subscribed over and over.

After, check `opt_out` will fill `unsubscription_date` and the row will stay.  Tests in `mass_mailing_list_dynamic` pass.
This commit is contained in:
Jared Kipe 2020-03-18 07:29:18 -07:00 committed by emagdalenaC2i
parent e21cc81ede
commit 95a70d8bda

View File

@ -9,3 +9,5 @@
* Ernesto Tejeda * Ernesto Tejeda
* Victor M.M. Torres * Victor M.M. Torres
* Manuel Calero * Manuel Calero
* `Hibou Corp. <https://hibou.io>`_