'Generates a basic ir.ui.view with the provided name, parent and arch.
If no parent is provided, the view is top-level.
If no arch is provided, generates one by calling :meth:`~.arch_for`.
:param str name:
:param int parent: id of the parent view, if any
:param str arch:
:returns: the created view\'s id.
:rtype: int'

def makeView(self, name, parent=None, arch=None):

    view = self.View.create({'model': self.model, 'name': name, 'arch': (arch or self.arch_for(name, parent=parent)), 'inherit_id': parent, 'priority': 5})
    self.view_ids[name] = view.id
    return view
