Skip to main content

API wrapper for Odoo CRM written in Python

Project description

# odoocrm-python

odoocrm is an API wrapper for Odoo CRM written in Python

## Installing
```
pip install odoocrm-python
```

## Usage
```
from odoocrm.client import Client

client = Client('URL', 'DATABASE', 'USERNAME', 'PASSWORD')
```

Search partner
```
response = client.search_partner([[['is_company', '=', True], ['customer', '=', True]]], {'offset': 10, 'limit': 5})
```

Read partner
```
response = client.read_partner([1, 2], {'fields': ['name', 'country_id', 'comment']})
```

Create partner
```
response = client.create_partner([{'name': "John doe",}])
```

## Requirements
- requests

## Tests
```
python tests/test_client.py
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for odoocrm-python, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size odoocrm-python-0.1.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page