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.
Esta pergunta foi sinalizada
1
Responder
5577
Visualizações
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
1
mar. 23
|
5001 | ||
|
|
0
dez. 22
|
5714 | ||
|
|
0
jun. 21
|
5059 | ||
|
|
0
jun. 20
|
8224 | ||
|
One2many or many2one
Resolvido
|
|
1
nov. 19
|
4549 |
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.