def METHOD_NAME(self):
    lines = self.filtered(lambda l: l.state != "draft")
    if lines:
        raise UserError(_("You cannot delete an CNAB Batch which is not draft !"))
    return super(CNABBatch, self).METHOD_NAME()