Simple API wrapper for Odoo's External API
Project description
Odoo Python Client
Odoo API Client in Python
- Free Software: MIT License
Installation
pip install odoo_client
Quickstart
from odoo_client import OdooClient
ODOO_URL = "<Your Odoo URL>"
ODOO_DB = "<Your Odoo Database Name>"
ODOO_USER = "<Your Odoo Username>"
ODOO_PW = "<Your Odoo Password>"
CLIENT = OdooClient(ODOO_URL, ODOO_DB, ODOO_USER, ODOO_PW)
PARTNER = CLIENT.object("res.partner")
# Search for Partners that are companies and return the fields: "name", "country_id" and "comment"
records = PARTNER.search_read([["is_company", "=", True]], ["name", "country_id", "comment"])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
odoo_client-0.0.6.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file odoo_client-0.0.6.tar.gz
.
File metadata
- Download URL: odoo_client-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9150a20a0f9f2a11d261be4a64693abb47e6929a7bcf081caba34d20f4d75faf |
|
MD5 | e5496305188457e1f804978d028127d8 |
|
BLAKE2b-256 | d6b83b336b8b8657bf8e1cdf9457df874e5d21a1bdcd8979139f78386b0fa68b |
File details
Details for the file odoo_client-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: odoo_client-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63dabade09a2769ed7fbff38541f3db4537fd3eb0801c59ee04209a4af6b8cc |
|
MD5 | 717bbf74f8d9e5a6c8bae2ad0a1bd8c6 |
|
BLAKE2b-256 | d798f7be41366dc5a860c9cd120bfa30bb736a534979be7472a8c56474c757f9 |