跳至内容
菜单
此问题已终结
2 回复
20992 查看

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


What does it mean?

形象
丢弃
最佳答案

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))

形象
丢弃
最佳答案

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.


形象
丢弃
相关帖文 回复 查看 活动
3
11月 24
30156
1
12月 21
2883
0
12月 21
2384
0
4月 15
4732
2
3月 15
10520