title: ManyToMany relationship via XML-RPC JAVA
body: <p>I'm using OpenERP 7.0 and I want to set a ManyToMany relationship between my objects in XML-RPC.</p>
  
  <p><a href="https://www.odoo.com/documentation/8.0/reference/orm.html#openerp.models.Model.write" rel="nofollow">According to the documentation</a> (Unfortunately for Odoo 8.0) , I have to use special commands that permit to edit those relationships.</p>
  
  <p>For example to set a new ManyToMany relationship I have to use this triplet : <pre> (6, _, ids)</pre></p>
  
  <p>Here is my code to create a new message in OpenERP.</p>
  
  <pre class="lang-java prettyprint-override"><code>models.execute("execute_kw", asList(
                  db, uid, password,
                  "mail.message", "create",
                  asList(new HashMap() {{
                      put("author_id", 10);
                      put("partner_ids", asList(asList(6, 0, asList(34,54,56))));
                      put("subject", "This is a subject");
                      put("body", "This is the body");
                  }})
          ));
  </code></pre>
  
  <p>The message is created in OpenERP but the ManyToMany relationship is not set.</p>
  
  <p>So my question is what I'm doing wrong when I want to set this relationship in Java via XML-RPC.</p>