Skip to Content
मेन्यू
This question has been flagged
1 Reply
4031 Views

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
Discard

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.

Author Best Answer

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
Discard
Related Posts Replies Views Activity
1
मार्च 23
2335
0
दिस॰ 22
2978
0
जून 21
2906
0
जून 20
5418
1
नव॰ 19
2741