Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3933 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 23
2128
0
груд. 22
2789
0
черв. 21
2773
0
черв. 20
5268
One2many or many2one Вирішено
1
лист. 19
2633