Skip to main content

Simple API wrapper for Odoo's External API

Project description

Odoo Python Client

PyPI
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)

Uploaded Source

Built Distribution

odoo_client-0.0.6-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page