'create a view with the given field name'

def create_view(self, name):

    return self.env['ir.ui.view'].create({'name': 'yet    another    view', 'model': self.MODEL, 'arch': ('<tree    string="X"><field    name="%s"/></tree>' % name)})
