Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
21024 Prikazi

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


What does it mean?

Avatar
Opusti
Best Answer

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
nov. 24
30175
1
dec. 21
2891
0
dec. 21
2393
0
apr. 15
4745
2
mar. 15
10536