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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
10166
Tampilan
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 !
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
osv_memory inheritance - Odoo 8
Diselesaikan
|
|
1
Apr 15
|
5031 | |
Transient Model Clean up? [Closed]
Diselesaikan
|
|
2
Mei 22
|
21656 | |
|
1
Mar 15
|
7563 | ||
|
0
Mar 15
|
3833 | ||
|
0
Mar 15
|
4739 |