Django Odoo ORM is a Django app to provide a fully setup ORM to Odoo in any Django project. This project adds nothing but an app that sets the connection up at startup.
- Add "django_odoo_orm" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
# ...
'django_odoo_orm',
]
- Add "django_odoo_orm.context_processors.odoo_connection" to your TEMPLATES setting like this:
TEMPLATES = [
{
# ...
'OPTIONS': {
'context_processors': [
# ...
'django_odoo_orm.context_processors.odoo_connection',
],
},
},
]