Odoo Help


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.


XMLRPC openerp.modules.loading: loading 28 modules

on 12/3/13, 12:44 PM 696 views

Hello community

I want to communicate between two databases

in a module I created this : to see how it works B1

import xmlrpclib

username = 'admin' #the user
pwd = 'admin'      #the password of the user
dbname = 'test'    #the database

# Get the uid
sock_common = xmlrpclib.ServerProxy ('http://localhost:8069/xmlrpc/common')
uid = sock_common.login(dbname, username, pwd)

#replace localhost with the address of the server
sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/object')

partner = {
   'name': 'Fabien Pinckaers',
   'lang': 'fr_FR',

partner_id = sock.execute(dbname, uid, pwd, 'res.partner', 'create', partner)

address = {
   'partner_id': partner_id,
   'type' : 'default',
   'street': 'Chaussee de Namur 40',
   'zip': '1367',
   'city': 'Grand-Rosiere',
   'phone': '+3281813700',
   'fax': '+3281733501',

address_id = sock.execute(dbname, uid, pwd, 'res.partner.address', 'create', address)

that loop on it :

2013-12-03 16:34:10,525 19044 INFO xmlr openerp.modules.loading: loading 1 modules... 2013-12-03 16:34:10,565 19044 INFO xmlr openerp.modules.loading: loading 28 modules...

any ideas ??

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

0 follower(s)


Asked: 12/3/13, 12:44 PM
Seen: 696 times
Last updated: 3/16/15, 8:10 AM