I tried the same thing in Python, and it works fine...
Here is the Python code:
import xmlrpclib
user = 'admin'
pwd = 'admin'
dbname = 'mg3'
model = 'stock.inventory'
sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/common')
uid = sock.login(dbname ,user ,pwd)
sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/object')
sock.execute(dbname, uid, pwd, model, 'action_done', [1])
and here is the Java code:
XmlRpcClient client = new XmlRpcClient();
XmlRpcClientConfigImpl xmlrpcConfig = new
XmlRpcClientConfigImpl();
xmlrpcConfig.setEnabledForExtensions(true);
xmlrpcConfig.setServerURL(new URL("http", host, port,
"/xmlrpc/object"));
client.setConfig(xmlrpcConfig);
Object[] params = new Object[] { db, Integer.toString(userId),
password, "stock.inventory", "action_done", new Object[] { 1 } };
client.execute("execute", params);
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=46771#46771
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users