(self)
return recipients
Add the invoicing partner to the suggested recipients sending an
        email.
Add the invoicing partner to the suggested recipients sending an
        email.
Add the invoicing partner to the suggested recipients sending an email .
def message_get_suggested_recipients(self):
        """Add the invoicing partner to the suggested recipients sending an
        email.
        """
        recipients = super().message_get_suggested_recipients()
        partner_obj = self.env["res.partner"]
        for record in self:
            partner = partner_obj.browse(
                record.partner_id.address_get(["invoice"])["invoice"]
            )
            record._message_add_suggested_recipient(
                recipients,
                partner=partner,
            )
        return recipients
def message_get_suggested_recipients ( self ) : recipients = super ( ) . message_get_suggested_recipients ( ) partner_obj = self . env [ "res.partner" ] for record in self : partner = partner_obj . browse ( record . partner_id . address_get ( [ "invoice" ] ) [ "invoice" ] ) record . _message_add_suggested_recipient ( recipients , partner = partner , ) return recipients