Skip to Content
मेन्यू
This question has been flagged
2 Replies
20964 Views

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


What does it mean?

Avatar
Discard
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
Discard
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
Discard
Related Posts Replies Views Activity
3
नव॰ 24
30083
1
दिस॰ 21
2809
0
दिस॰ 21
2354
0
अप्रैल 15
4710
2
मार्च 15
10485