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 get the database list using XMLRPC webservice with Python ? [Closed]

By
semah
on 11/2/13, 9:46 PM 3,233 views

The Question has been closed

by
Ray Carnes
on 11/04/2013 03:06:23

Hello everybody, I want to get the list of database available in my OpenERP server using XMLRPC webservice with Python. How can we do that ?

1

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 11/3/13, 2:34 PM

Hi

import xmlrpclib
sock_db = xmlrpclib.ServerProxy ('http://localhost:8069/xmlrpc/db')
all_base = sock_db.list()
print all_base

Other examples in doc OpenERP

Thanks Borni !

semah
on 11/3/13, 3:22 PM

Can we create a db like this?

Midhunmadhu
on 5/11/15, 5:26 AM
0
Antanas
On 11/3/13, 2:58 PM

Use Oerplib:

$ pip install oerplib

And then:

import oerplib

oerp = oerplib.OERP('localhost', protocol='xmlrpc', port=8069)
for db in oerp.db.list():
    print db

Thank you too Antanas !

semah
on 11/3/13, 3:22 PM

can we create a odoo db like this?

Midhunmadhu
on 5/11/15, 5:26 AM

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/2/13, 9:46 PM
Seen: 3233 times
Last updated: 4/29/16, 11:11 PM