def METHOD_NAME(self, **options):
    self.verbosity = int(options["verbosity"])
    task = options.get("task", None)
    database = options["database"]
    environment = options["environment"]
    if (
        not environment.startswith("odoo_read_")
        or not len(environment) == 11
        or not environment[10].isdigit()
    ):
        raise CommandError(
            "Invalid environment: %s. It must be odoo_read_X with X being a number between 1 to 5"
            % environment
        )
    if database not in settings.DATABASES.keys():
        raise CommandError("No database settings known for '%s'" % self.database)
    kwargs = {
        "env": "%s,nowebservice" % environment,
        "database": database,
        "task": task,
        "constraint": 0,
        "plantype": 2,
    }
    if not options["task"]:
        task = Task(
            name="odoo_import",
            submitted=datetime.now(),
            status="Waiting",
            user=options["user"],
        )
        task.save(using=database)
        kwargs["task"] = task.id
    elif options["user"]:
        kwargs["user"] = options["user"]
    management.call_command("runplan", **kwargs)