Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4003 Zobrazení

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
Zrušit

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.

Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 23
2307
0
pro 22
2932
0
čvn 21
2897
0
čvn 20
5402
1
lis 19
2724