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

Hi, 

I'm trying to create new product templates, and add their relation to the many2many table associated with. 
I followed the api and the documentation, and formatted my tuple like this : 

 ["classification_ids": (6, 0, [ids])]

The "ids" are already known in the table "product_classification", and I used the "create" method, to create my new product template

But it didn't worked : it created my product template, but didn't created the associated relationship in the table "product_classification_product_template_rel


I also tried to do it the other way : update the product_classification with the associated product_template id, using this time the "write" method to update the product_classification. 
I once again followed the api and the documentation and formatted my tuple like this : 

["product_tmpl_ids": (4, id, 0)]

But that didn't worked either. 

I'm using java 8 for my code, and JsonRPC to communicate with odoo 11

Any idea why that didn't work ? 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Setting Many2many JSON RPC แก้ไขแล้ว
2
ก.ย. 19
5599
Add column to a many2many rel table แก้ไขแล้ว
1
พ.ย. 19
5216
1
ก.ย. 20
6454
how to format mapped() result แก้ไขแล้ว
2
มิ.ย. 20
11463
Problem with M2M Fields แก้ไขแล้ว
2
พ.ย. 18
6171