Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4139 Zobrazení

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?

Avatar
Zrušit
Nejlepší odpověď

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/

 

    

    

 

Avatar
Zrušit