Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
21074 Visualizzazioni

ValueError: Many2one shrinkage.record.line.shrinkage_record_id from Model to TransientModel is forbidden,


What does it mean?

Avatar
Abbandona
Risposta migliore

It means Model 'shrinkage.record.line' is  Transient Model. (e.g. class MyTransientModel(models.TransientModel)

you couldn't use a transient model as Many2one field in persistence model (e.g. class MyModel(models.Model))

Avatar
Abbandona
Risposta migliore

Transient Model are not handled as Models.model in the database. Although, it also saved as a database record, it will be deleted automatically after its data transferring work.


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
nov 24
30270
1
dic 21
2921
0
dic 21
2425
0
apr 15
4767
2
mar 15
10572