Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
10192 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

Thanks !

Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 15
5085
2
mei 22
21700
1
mrt. 15
7591
0
mrt. 15
3874
0
mrt. 15
4770