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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
1
Antworten
4032
Ansichten
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.
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
1
März 23
|
2336 | ||
|
0
Dez. 22
|
2978 | ||
|
0
Juni 21
|
2906 | ||
|
0
Juni 20
|
5418 | ||
One2many or many2one
Gelöst
|
|
1
Nov. 19
|
2741 |
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.