コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4027 ビュー

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.

アバター
破棄

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.

著作者 最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 23
2331
0
12月 22
2968
0
6月 21
2903
0
6月 20
5415
1
11月 19
2738