Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4797 มุมมอง

I'm using OpenERP 7.0 and I want to set a ManyToMany relationship between my objects in XML-RPC.

According to the documentation (Unfortunately for Odoo 8.0 and OpenERP 6.0) , I have to use special commands that permit to edit those relationships.

For example to set a new ManyToMany relationship I have to use this triplet :  

(6, _, ids)

Here is my code to create a new message in OpenERP.

    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");
}})
));


The message is created in OpenERP but the ManyToMany relationship is not set.

So my question is what I'm doing wrong when I want to set this relationship in Java via XML-RPC.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 17
14050
How to access ODOO 8 using Java xmlrpc? แก้ไขแล้ว
2
เม.ย. 15
15812
3
เม.ย. 15
8127
1
ก.ค. 25
1319
4
ต.ค. 21
23769