All Projects → odoo-ide → odoo-stubs

odoo-ide / odoo-stubs

Licence: GPL-3.0 license
Python Stubs for Odoo

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to odoo-stubs

pybind11-stubgen
Generates stubs for python modules (targeted to C++ extensions compiled with pybind11)
Stars: ✭ 103 (+157.5%)
Mutual labels:  typing, pep484
typesentry
Python 2.7 & 3.5+ runtime type-checker
Stars: ✭ 19 (-52.5%)
Mutual labels:  typing, pep484
Typeshed
Typeshed contains external type annotations for the Python standard library and Python builtins, as well as third party packages as contributed by people external to those projects.
Stars: ✭ 2,501 (+6152.5%)
Mutual labels:  stub, typing
account-consolidation
Odoo Account Consolidation Addons
Stars: ✭ 20 (-50%)
Mutual labels:  odoo
extensions
Code Generators and Extensions for vanilla-rtb stack
Stars: ✭ 16 (-60%)
Mutual labels:  stub
type-hangul
⌨️ 한글 타이핑 효과 라이브러리
Stars: ✭ 80 (+100%)
Mutual labels:  typing
type-assert
Hack library for converting untyped data to typed data.
Stars: ✭ 24 (-40%)
Mutual labels:  typing
tiny-typed-emitter
Fully type-checked NodeJS EventEmitter
Stars: ✭ 96 (+140%)
Mutual labels:  typing
tt
Practicing touch typing, and monitor your typing speed using your own text files
Stars: ✭ 68 (+70%)
Mutual labels:  typing
ansible-odoo
Automatic deployment for Odoo on Linux
Stars: ✭ 19 (-52.5%)
Mutual labels:  odoo
Odoo-Book
🤓Odoo 小书,Odoo 入门教程 (龟速填坑中...已更新到第 7 章第 2 节,要是看不到更新可以强制刷新一下浏览器。小书源码地址请看 README。)
Stars: ✭ 92 (+130%)
Mutual labels:  odoo
server-brand
No description or website provided.
Stars: ✭ 42 (+5%)
Mutual labels:  odoo
typing.js
Js library for creating typing effect on webpage.
Stars: ✭ 22 (-45%)
Mutual labels:  typing
babel-plugin-rewire-exports
Babel plugin for stubbing [ES6, ES2015] module exports
Stars: ✭ 62 (+55%)
Mutual labels:  stub
odoo-addons
Modules for Odoo/OpenERP
Stars: ✭ 94 (+135%)
Mutual labels:  odoo
ak-odoo-incubator
Misc Odoo modules maturing before going to a specific repo
Stars: ✭ 19 (-52.5%)
Mutual labels:  odoo
odoo app
Odoo App Community version
Stars: ✭ 34 (-15%)
Mutual labels:  odoo
runboat
A simple runbot lookalike on kubernetes. Main goal is replacing the OCA runbot.
Stars: ✭ 57 (+42.5%)
Mutual labels:  odoo
odoo config
odoo 尝试性小模块
Stars: ✭ 24 (-40%)
Mutual labels:  odoo
phantom-types
Phantom types for Python.
Stars: ✭ 120 (+200%)
Mutual labels:  typing

This is used by PyCharm Odoo to help PyCharm better understands your Odoo source code.

Why do you need this stubs for Odoo?

Python is a dynamic language that makes difficult for any IDE to understand and provide a great code completion. For example in Odoo, some automatic fields such as id, create_date, create_uid,... are declared dynamically (https://github.com/odoo/odoo/blob/14.0/odoo/models.py#L450) so PyCharm could not know if they are attributes of model and you might see warnings such as Unresolved attribute reference when trying reference them from a recordset. It's the reason why we need stubs for Odoo. The stubs provides additional info to help PyCharm know these attributes and its type, and thereby provides better code completion, navigation and inspection.

How to use this stubs in PyCharm?

1. Clone and checkout the branch corresponding to the Odoo version

Example, for Odoo 14:

git clone -b 14.0 https://github.com/trinhanhngoc/odoo-stubs.git odoo-stubs14

2. Attach to your project

First make sure that you attached the Odoo source code (https://github.com/odoo/odoo) to your project window. Open Settings > Project > Project Structure, select Odoo source code and click Add Content Root and add odoo-stubs folder:

Screenshot from 2021-08-16 22-29-17

For custom addons folders, you can attach them as content roots beside Odoo source code or attach them as projects into the same window and setup project dependencies in Settings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].