İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3937 Görünümler

I have a model A and model B. A has a field X that is many2one of model B, and B has a field Y that is one2many to model A. When I try to update field X via XML-RPC (even though X is still null) the "another model requires the record being deleted." error yield.

Avatar
Vazgeç

Hey could you share the code of how you did it ? I am trying the same thing using XML-RPC in python but I tint know what to enter on the many2one field.

Üretici En İyi Yanıt

I was actually using odoo-await for Odoo client and was writting Many2one field using update() / create(). Fixed the error by using update() with action to One2many instead.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 23
2134
0
Ara 22
2792
0
Haz 21
2797
0
Haz 20
5280
1
Kas 19
2643