تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
20914 أدوات العرض

How to integrate odoo in Django? 

If anyone know answer,please let me know

الصورة الرمزية
إهمال
أفضل إجابة

Below mentioned steps for Odoo integration in django

1.Add “Djangodoo” to your INSTALLED_APPS setting like this:

INSTALLED_APPS = ( ... 'Djangodoo', )

2.Include Odoo configuration in your project settings:

ODOO_HOST = { 'USER': 'username', 'PASSWORD': 'password', 'HOST': 'http://localhost', 'PORT': 8069, 'DB': 'dbname' }

3. This is [optional] but you can Include the Odoo authentication backend in your project settings such as 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

Please go through with this link for more : http://www.axistechnolabs.com/detail-blog/Guideline-for-Odoo-integration-in-django-python

الصورة الرمزية
إهمال

Please format links as links for convenience.

أفضل إجابة
Here are the links: 
  • https://medium.com/@axistechnolabs/guideline-for-odoo-integration-in-django-python-8c3bed069c8c
  • http://www.axistechnolabs.com/detail-blog/Guideline-for-Odoo-integration-in-django-python
  • https://pypi.org/project/djangodoo/
    
    

الصورة الرمزية
إهمال

Please format links as links for convenience.