Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
10272 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks !

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 15
5135
2
thg 5 22
21783
1
thg 3 15
7687
0
thg 3 15
3937
0
thg 3 15
4842