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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4022
أدوات العرض
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
|
2326 | ||
|
0
ديسمبر 22
|
2950 | ||
|
0
يونيو 21
|
2900 | ||
|
0
يونيو 20
|
5410 | ||
One2many or many2one
تم الحل
|
|
1
نوفمبر 19
|
2737 |
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.