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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
1
Ответить
4630
Представления
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
мар. 23
|
3216 | ||
|
|
0
дек. 22
|
3810 | ||
|
|
0
июн. 21
|
3517 | ||
|
|
0
июн. 20
|
6380 | ||
|
One2many or many2one
Решено
|
|
1
нояб. 19
|
3273 |
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.