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 hashes)
Built Distribution
Close
Hashes for odoo_client-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63dabade09a2769ed7fbff38541f3db4537fd3eb0801c59ee04209a4af6b8cc |
|
MD5 | 717bbf74f8d9e5a6c8bae2ad0a1bd8c6 |
|
BLAKE2b-256 | d798f7be41366dc5a860c9cd120bfa30bb736a534979be7472a8c56474c757f9 |