Browse Source

[FIX+IMP] mass_mailing_list_dynamic: tests, icons, filters... (#211)

* [FIX+IMP] mass_mailing_list_dynamic: tests, icons, filters...

* Brand new icon
* Added feature of loading an existing filter as criteria
* Tests as SavepointCase for optimizing times
* Tests in post-install for avoiding errors on res.partner not null constraints
  when several modules added them.
* Updated documentation.
* Fix mock in test for not commiting test data.

* [FIX] mass_mailing_list_dynamic: Wasn't able to create contacts in fully synced lists

Syncing context was being set in the wrong object. Added to test too.

* [FIX] mass_mailing_list_dynamic: Allow to write back vals from res.partner

Module mass_mailing_partner writes back certain values from partner to
mass_mailing_contact. Module should allow that write operation.
pull/277/head
Pedro M. Baeza 7 years ago
parent
commit
aa294e5255
  1. 2
      mass_mailing_partner/models/res_partner.py

2
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),

Loading…
Cancel
Save