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
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
10183
Zobrazení
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 !
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
osv_memory inheritance - Odoo 8
Vyřešeno
|
|
1
dub 15
|
5070 | |
Transient Model Clean up? [Closed]
Vyřešeno
|
|
2
kvě 22
|
21688 | |
|
1
bře 15
|
7586 | ||
|
0
bře 15
|
3864 | ||
|
0
bře 15
|
4762 |