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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
10184
Widoki
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 !
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
osv_memory inheritance - Odoo 8
Rozwiązane
|
|
1
kwi 15
|
5070 | |
Transient Model Clean up? [Closed]
Rozwiązane
|
|
2
maj 22
|
21689 | |
|
1
mar 15
|
7586 | ||
|
0
mar 15
|
3864 | ||
|
0
mar 15
|
4762 |