def METHOD_NAME(self):
    self._create_invoice(self.partner_a_child)
    self._create_invoice(self.partner_a_child)
    self._create_invoice(self.partner_b)
    self._create_invoice(self.partner_c)
    partners = self.partner_a_child + self.partner_b + self.partner_c
    invoices = self.env["account.move"].search([("partner_id", "in", partners.ids)])
    invoices.action_post()
    wizard = (
        self.env["account.invoice.payment.line.multi"]
        .with_context(active_model=invoices._name, active_ids=invoices.ids)
        .create({})
    )
    res = wizard.run()
    payment_order = self.env[res["res_model"]].browse(res["res_id"])
    old_messages = payment_order.message_ids
    template_xml_id = "%s.%s" % (
        "account_payment_order_notification",
        "email_account_payment_order_notification",
    )
    wizard = (
        self.env["wizard.account.payment.order.notification"]
        .with_context(active_id=payment_order.id)
        .create({"mail_template_id": self.env.ref(template_xml_id).id})
    )
    self.assertEqual(len(wizard.line_ids), 3)
    line_a = wizard.line_ids.filtered(
        lambda x: x.partner_id == self.partner_a_child
    )
    self.assertEqual(line_a.email, self.partner_a_child.email)
    self.assertTrue(line_a.to_send)
    line_b = wizard.line_ids.filtered(lambda x: x.partner_id == self.partner_b)
    self.assertEqual(line_b.email, self.partner_b.email)
    self.assertTrue(line_b.to_send)
    line_c = wizard.line_ids.filtered(lambda x: x.partner_id == self.partner_c)
    self.assertFalse(line_c.email)
    self.assertFalse(line_c.to_send)
    wizard.action_process()
    self._test_notification_from_partner(payment_order, self.partner_a_child, 2)
    self._test_notification_from_partner(payment_order, self.partner_b, 1)
    self.assertNotIn(
        self.partner_c, payment_order.mapped("notification_ids.partner_id")
    )
    new_messages = payment_order.message_ids - old_messages
    self.assertIn(self.env.ref("mail.mt_note"), new_messages.mapped("subtype_id"))