'Infer the model from the name. E.g.: \'My New Model\' should become \'x_my_new_model\'.'

@api.model
def name_create(self, name):

    vals = {'name': name, 'model': ('x_' + '_'.join(name.lower().split('    ')))}
    return self.create(vals).name_get()[0]
