A Dissabte 04 Setembre 2010 19:37:07, forum-u...@tinyerp.org va escriure:
> I am trying to create product or partner using Java, following the
> http://doc.openerp.com/developer/6_22_XML-RPC_web_services/index.html
> page.

you can see an example on :
http://bazaar.launchpad.net/~openerp-kettle/openerp-
kettle/trunk/annotate/head%3A/src/com/nantic/kettle/tinyoutput/TinyServices.java

> 
> I can search and read.
> Create is giving me a hard time
> error:
> 
> ERROR:web-services:[21] AttributeError: 'list' object
> has no attribute 'update'  
> //Partner's name
> Object[] name   = new Object[] {"name",
> _name}; //Object "Partner"
>  Object[] partner = new Object[] {name};
> 
> //creation asked
>  Object[] params = new Object[] {this.dbName,
> this.uid, this.password, "res.partner", "create", partner};
> 
> //with supposed appropriate try catch:
>  Object partner_id = xmlrpcClient.execute("execute", params);
> 
> It is working in Python.
> So what would be the "object" like for a creation?
> 
> ------------------------
> Allez, hop, retournons au boulot, maintenant!!
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> --
> http://www.openobject.com/forum/viewtopic.php?p=60669#60669
> 
> -------------------- m2f --------------------
> 
> 
> _______________________________________________
> Tinyerp-users mailing list
> http://tiny.be/mailman2/listinfo/tinyerp-users

-- 


Àngel Àlvarez [ NaN ]
OpenErp Partner 
tel: 652 43 93 76
www.nan-tic.com

A NaN Creem,Adaptem i Millorem 
Programari lliure pel seu Negoci.
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to