diff --git a/mass_mailing_partner/models/res_partner.py b/mass_mailing_partner/models/res_partner.py index 118dd03c..334d6a03 100644 --- a/mass_mailing_partner/models/res_partner.py +++ b/mass_mailing_partner/models/res_partner.py @@ -55,7 +55,7 @@ class ResPartner(models.Model): if vals.get('name'): mm_vals['name'] = vals['name'] if vals.get('email'): - mm_vals['name'] = vals['email'] + mm_vals['email'] = vals['email'] # Using sudo because ACLs shouldn't produce data inconsistency self.env["mail.mass_mailing.contact"].sudo().search([ ("partner_id", "in", self.ids),