Odoo Ayuda


1 Answer
Shivam Dudhat
17/3/16 7:23

Hi Akhil 

Please try this

import xmlrpclib

dbname = 'demo'

username = 'admin'

pwd = 'admin'

server = ''

sock_common = xmlrpclib.ServerProxy(server + '/xmlrpc/common')

sock = xmlrpclib.ServerProxy(server + '/xmlrpc/object')

uid = sock_common.login(dbname, username, pwd)

recored_id = sock.execute(dbname, uid, pwd, 'model', 'search', [('name', '=', name])

print ">>>>>>>>>>>>", recored_id

Realizar una pregunta
Keep Informed
1 seguidor(es)
About This Community

This platform 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.

Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now