跳至內容
選單
此問題已被標幟
2 回覆
21087 瀏覽次數

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
30284
1
12月 21
2924
0
12月 21
2433
0
4月 15
4779
2
3月 15
10576