Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
10246 Visualizações

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?

Avatar
Cancelar
Melhor resposta

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. 

Avatar
Cancelar
Autor

Thanks !

Publicações relacionadas Respostas Visualizações Atividade
1
abr. 15
5113
2
mai. 22
21748
1
mar. 15
7632
0
mar. 15
3891
0
mar. 15
4815