A Django app to copy models, load and save records from a running Odoo instance
Project description
Djangodoo allows you to copy models from Odoo to Django, load records from Odoo as well as modifying them. It also provides an authentication mechanism using the Odoo authentication. This app makes a wide use of the Erppeek library.
Quick start
Add “Djangodoo” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'Djangodoo', )
Include the Odoo host configuration in your project settings like this:
ODOO_HOST = { 'USER': 'username', 'PASSWORD': 'password', 'HOST': 'http://localhost', 'PORT': 8069, 'DB': 'dbname' }
[optional] Include the Odoo authentication backend in your project settings like this:
AUTHENTICATION_BACKENDS = ('djangodoo.auth.OdooAuthBackend')
Define a model like this:
from djangodoo.models import OdooModel class Partner(OdooModel): _odoo_model = "res.partner" _odoo_fields = ['name'] # optional; if omitted, all fields are copied _odoo_ignore_fields = None # optional; fields in this list are not copied
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
djangodoo-0.1.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for djangodoo-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b5f30e19ecacaf5492b118d2c95451504d8b01c1476981754681299d445d63e |
|
MD5 | 8c148dae8b6824aeba7a21ed686638a7 |
|
BLAKE2b-256 | 9496f4c7879a33c11d3e6d2850e64ba266a8e01cf95a5578d4c003bf1f79ca91 |