Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10299 มุมมอง

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 !

Related Posts ตอบกลับ มุมมอง กิจกรรม
osv_memory inheritance - Odoo 8 แก้ไขแล้ว
1
เม.ย. 15
5143
Transient Model Clean up? [Closed] แก้ไขแล้ว
2
พ.ค. 22
21805
1
มี.ค. 15
7714
0
มี.ค. 15
3955
0
มี.ค. 15
4869