Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
10241 Представления

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 Ответы Просмотры Активность
1
апр. 15
5110
2
мая 22
21745
1
мар. 15
7628
0
мар. 15
3890
0
мар. 15
4809