https://github.com/gearplug/odoocrm-python
odoocrm is an API wrapper for Odoo CRM written in Python
https://github.com/gearplug/odoocrm-python
api api-wrapper crm odoo odoocrm python wrapper
Last synced: about 2 months ago
JSON representation
odoocrm is an API wrapper for Odoo CRM written in Python
- Host: GitHub
- URL: https://github.com/gearplug/odoocrm-python
- Owner: GearPlug
- License: mit
- Created: 2017-10-26T19:37:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T14:55:57.000Z (about 3 years ago)
- Last Synced: 2025-10-10T15:40:02.249Z (8 months ago)
- Topics: api, api-wrapper, crm, odoo, odoocrm, python, wrapper
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 
# 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']})
```
#### Search and Read partner
```
response = client.search_read_partner([[]], {'fields': ['name', 'country_id', 'comment'], "order": "id asc"})
# Get all fields by not sending 'fields' paramater
```
#### Create partner
```
response = client.create_partner([{'name': "John doe",}])
```
#### List fields Partner
```
response = client.list_fields_partner()
```
#### Search partner Tags
```
response = client.search_partner_tag([[['name', '=', 'tag_name']]], {'offset': 10, 'limit': 5})
```
#### Create partner Tag (Category)
```
response = client.create_partner_tag("tag_name")
```
## Requirements
- requests
## Tests
```
python tests/test_client.py
```