Skip to main content

odoo_connector

A clean and lightweight Python connector for Odoo's XML-RPC API.

This package simplifies interactions with Odoo models using Python, so you can authenticate, read, create, update, and delete records easily.

✨ Features

  • 🔐 Authentication via XML-RPC
  • 📚 CRUD operations on any Odoo model
  • 🔁 Generic method caller
  • 🧼 Clean and well-documented code
  • ✅ Ready for use in production or automation scripts

🛠️ Installation

A. Clone the repository & install locally:

git clone https://github.com/your-user/odoo_connector.git
cd odoo_connector
pip install -e .

🚀 Usage

1. Import and initialize

from odoo_connector import OdooConnector

odoo = OdooConnector(
    url='https://your-odoo-instance.com',
    db='your_database_name',
    username='admin@example.com',
    password='your_password'
)

2. Read records

partners = odoo.read('res.partner', fields=['name', 'email'], limit=5)
for p in partners:
    print(p)

3. Create a record

partner_id = odoo.create('res.partner', {
    'name': 'Bruce Wayne',
    'email': 'batman@gotham.com'
})
print("New Partner ID:", partner_id)

4. Update a record

odoo.write('res.partner', [partner_id], {'phone': '+123456789'})

5. Delete a record

odoo.unlink('res.partner', [partner_id])

6. Call a custom method

has_rights = odoo.call_method(
    'res.partner',
    'check_access_rights',
    ['read'],
    {'raise_exception': False}
)
print("Has read access:", has_rights)

📦 Project Structure

odoo_connector/
├── odoo_connector/
│   ├── __init__.py
│   └── api.py
├── tests/
│   └── test_connector.py
├── setup.py
├── README.md
└── LICENSE

Metadata

Release files for odoo-connector-datoulobase 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoo-connector-datoulobase 0.1.0
File Size Uploaded Provenance Actions
odoo_connector_datoulobase-0.1.0.tar.gz 4.1 kB Without provenance Details for odoo_connector_datoulobase-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for odoo-connector-datoulobase 0.1.0
File Interpreter ABI Platform Actions
odoo_connector_datoulobase-0.1.0-py3-none-any.whl Python 3 none any Details for odoo_connector_datoulobase-0.1.0-py3-none-any.whl

Total release size: 8.5 kB

Release files / odoo_connector_datoulobase-0.1.0.tar.gz

Download URL odoo_connector_datoulobase-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd54477fbab961a7a594b0ee22b553b7b74592f497504060bfbf8c95e52436d7
BLAKE2b-256 checksum
How to use checksums
2bce38fc13139c93e7a20b295bfcedc8222947303a2aef7c033d6b34638c5757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / odoo_connector_datoulobase-0.1.0-py3-none-any.whl

Download URL odoo_connector_datoulobase-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7bbeee86e6e425fdc602f8df9407ca250df89a1f57a0dfe34354034933a49aa
BLAKE2b-256 checksum
How to use checksums
c9bd5e06bf593a0872d2a7c70cc8b4810e524b6c701b1c2f88ae6beebc457df9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for odoo-connector-datoulobase 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page