def METHOD_NAME(self):
    for record in self.filtered(lambda m: m.state == SIT_MANIF_PENDENTE[0]):
        record.action_ciencia_emissao()
    if len(self) == 1:
        return self.download_attachment(self.attachment_id)
    compressed_attachment_id = (
        self.env["l10n_br_fiscal.attachment"]
        .create([])
        .build_compressed_attachment(self.mapped("attachment_id"))
    )
    return self.download_attachment(compressed_attachment_id)