コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
10268 ビュー

I need to create a wizard but only keep the data temporarily. I assumed the job would be done using osv.osv_memory and a cron would periodically flush the data. But I also noticed there is an osv.Transient model being used in other Odoo module. Can anyone tell me what the difference is and when to use the right type of model?

アバター
破棄
最善の回答

Hi,

there is one line of code in osv.py

osv_memory = TransientModel

it means that both are same. 

In V6.1, V7 and V8 both are same but in V6.0 there is no any existence of TransientModel.

I hope it is useful to you. 

アバター
破棄
著作者

Thanks !

関連投稿 返信 ビュー 活動
1
4月 15
5132
2
5月 22
21772
1
3月 15
7666
0
3月 15
3933
0
3月 15
4832