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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
10193
查看
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 !
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
4月 15
|
5085 | ||
|
2
5月 22
|
21700 | ||
|
1
3月 15
|
7591 | ||
|
0
3月 15
|
3874 | ||
|
0
3月 15
|
4770 |