Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to integrate openerp 7.0 with django?

By
udhay
on 11/4/14, 7:52 AM 975 views

I have created for partner name and address information in django web page and How should I Pass the partner name and address to openerp 7.0 in windows environment please give me some steps to execute sample codes?

0
shashank verma
On 11/10/14, 10:53 AM

Hello Udhay,

OpenERP API's(xmlrpc) will help to connect any web application.


Example:

import xmlrpclib
#LOGIN DETAILS
#ENTER YOUR LOGIN CREDENTIAL TO CONNECT

username = ''
password = ''
database = ''


django_data=['...........'] or {......}


uid = sock_comm.login(database,username,password)
sock = xmlrpclib.ServerProxy('http://yourdomain/xmlrpc/object')    # sock =xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/object')

print "WOW !!CONNECTION SUCCESSFULL"

ids = sock.execute(database,uid, password,'res.partner', 'search', [(your filter domain)])
for i in ids:

    //your business logic
    //use write or create methods here

    refer API documentation: https://doc.odoo.com/6.1/developer/12_api/

 

    

    

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/4/14, 7:52 AM
Seen: 975 times
Last updated: 3/16/15, 8:10 AM