{"id":21762575,"url":"https://github.com/odoo-ide/odoo-stubs","last_synced_at":"2025-04-06T06:13:10.737Z","repository":{"id":50493663,"uuid":"226688135","full_name":"odoo-ide/odoo-stubs","owner":"odoo-ide","description":"Python Stubs for Odoo","archived":false,"fork":false,"pushed_at":"2025-03-26T09:36:19.000Z","size":1750,"stargazers_count":76,"open_issues_count":0,"forks_count":40,"subscribers_count":6,"default_branch":"18.0","last_synced_at":"2025-03-29T12:36:10.528Z","etag":null,"topics":["odoo","pep484","python","stub","types","typing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odoo-ide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-08T15:24:56.000Z","updated_at":"2025-03-26T09:36:24.000Z","dependencies_parsed_at":"2024-01-27T15:26:29.260Z","dependency_job_id":"f960ae2d-5cba-459a-9cb4-6cea5dcf8924","html_url":"https://github.com/odoo-ide/odoo-stubs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odoo-ide%2Fodoo-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odoo-ide%2Fodoo-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odoo-ide%2Fodoo-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odoo-ide%2Fodoo-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odoo-ide","download_url":"https://codeload.github.com/odoo-ide/odoo-stubs/tar.gz/refs/heads/18.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441059,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["odoo","pep484","python","stub","types","typing"],"created_at":"2024-11-26T12:12:32.085Z","updated_at":"2025-04-06T06:13:10.719Z","avatar_url":"https://github.com/odoo-ide.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Odoo Stubs\n\n\u003e A stub file is a file containing a skeleton of the public interface of that Python module,\n\u003e including classes, variables, functions – and most importantly, their types.\n\u003e\n\u003e https://mypy.readthedocs.io/en/stable/stubs.html \n\nBy using these stubs, IDEs will provide better code completion,\nand static type checkers will provide better reports.\n\n## Usage\n\nIf you are using the [PyCharm plugin for Odoo](https://plugins.jetbrains.com/plugin/13499-odoo) or\nthe [VSCode extension for Odoo](https://marketplace.visualstudio.com/items?itemName=trinhanhngoc.vscode-odoo),\nthen you don't need to setup Odoo Stubs manually as they already have built-in Odoo Stubs.\nIf not, you can follow these instructions for manually setup.\n\n### 1. Clone the branch corresponding to the Odoo version\n\nExample, for Odoo 16:\n```\ngit clone -b 16.0 https://github.com/odoo-ide/odoo-stubs.git odoo-stubs16\n```\n\n### 2. Configure IDEs\n\n#### PyCharm\n\nFirst make sure you have attached the [Odoo source code](https://github.com/odoo/odoo)\nto your project.\nThen open `Settings \u003e Project \u003e Project Structure`,\nselect the project containing the Odoo source code and click `Add Content Root` to add the odoo-stubs folder.\n\n![PyCharm](images/pycharm.png)\n\n#### Visual Studio Code\n\nAdd the odoo-stubs folder to the `stubPath` or `extraPaths` settings as described in the\n[import resolution documentation](https://microsoft.github.io/pyright/#/import-resolution).\n\n![VSCode](images/vscode.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodoo-ide%2Fodoo-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodoo-ide%2Fodoo-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodoo-ide%2Fodoo-stubs/lists"}