skip to Main Content

Import "odoo.addons.base_rest.controllers" could not be resolved. Pylance(reportMissingImports) – Ubuntu

When i develop rest API for Addons odoo, set import and get problem Import "odoo.addons.base_rest.controllers" could not be resolved. Pylance(reportMissingImports) this is a part of my code from odoo.addons.base_rest.controllers import main class PrivateApiController(main.RestController): _root_path = '/api/private/helpdesk/' _collection_name = "private.helpdesk.service" and…

VIEW QUESTION

Visual Studio Code – Python in Vs-Code: Can't import python file

When i try to run main.py, this error appears: ModuleNotFoundError: No module named 'catalog' main.py from catalog.config import config from catalog.config.log_config import app_logging_config from catalog.es_catalog_controller import EsCatalogController @lru_cache() def get_settings(): return config.Settings() catalog_controller = EsCatalogController() It seems that vscode does…

VIEW QUESTION
Back To Top
Search