Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Email Marketing

Entity: mailing.mailing

Compute Method: _compute_use_exclusion_list

View 19.0 View 20.0
Inputs Method Outputs
+ """Always reset to using exclusion list for mailing lists and contacts."""
+ mailing_list_model_id = self.env['ir.model']._get('mailing.list')
+ mailing_contact_model_id = self.env['ir.model']._get('mailing.contact')
+ self.filtered(
+             lambda m: m.mailing_model_id in (mailing_list_model_id, mailing_contact_model_id)
+         ).use_exclusion_list = True

Back to entity