Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
21070 Vues

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


What does it mean?

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
nov. 24
30268
1
déc. 21
2920
0
déc. 21
2423
0
avr. 15
4767
2
mars 15
10572