Hello,
Up to now I was able to search/read/create and write objects thru XML RPC (using perl script).
Until now I was only dealing with "simple" values like : string (name of a product) number (price) boolean (true/false) ...
But I need now to deal with "many2many" field and I don't know how to perform...
As seen within "XML RPC perl - OpenERP dev book example" h t t p : / / doc.openerp.com/v6.0/developer/6_22_XML-RPC_web_services/#perl-example I build the "object data" as a hash reference and it work fine for all "simple values".
For "many2many" I tried to use list of "target model id" in the following format within the "object data" hash :
['1', '2']
[['1', '2']]
[('1', '2')]
or directly using the native "array" from perl (ie: @array) But I get any error while writing the data (the write is correctly running for other fields like name) and .... so.. nothing happened for this many2many field :(
I'm currently dealing with "multi variant" product an the field I try to update is "dimension_type_ids" from model "product.template" on v6.1/ubuntu 12.04 using apps extra module "product_variant_multi".
Any idea/help is welcome (even with other language than perl) !!!
Have a nice day.