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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
3935
Weergaven
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.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
mrt. 23
|
2132 | ||
|
0
dec. 22
|
2791 | ||
|
0
jun. 21
|
2787 | ||
|
0
jun. 20
|
5276 | ||
One2many or many2one
Opgelost
|
|
1
nov. 19
|
2636 |
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.