'Fetches the default view for the provided (model, view_type) pair:
primary view with the lowest priority.
:param str model:
:param int view_type:
:return: id of the default view of False if none found
:rtype: int'

@api.model
def default_view(self, model, view_type):

    domain = [('model', '=', model), ('type', '=', view_type), ('mode', '=', 'primary')]
    return self.search(domain, limit=1).id
