Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
10184 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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. 

Awatar
Odrzuć
Autor

Thanks !

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 15
5070
2
maj 22
21689
1
mar 15
7586
0
mar 15
3864
0
mar 15
4762