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_total

View 17.0 View 18.0
Inputs Method Outputs
  • mailing_model_real
  • ab_testing_enabled
  • ab_testing_pc
for mass_mailing in self:
-             total = self.env[mass_mailing.mailing_model_real].search_count(mass_mailing._parse_mailing_domain())
+             total = self.env[mass_mailing.mailing_model_real].search_count(mass_mailing._get_recipients_domain())
            if total and mass_mailing.ab_testing_enabled and mass_mailing.ab_testing_pc < 100:
                total = max(int(total / 100.0 * mass_mailing.ab_testing_pc), 1)
            mass_mailing.total = total
  • total

Back to entity