I'm using version 7 openerp, which is better to use for this version osv.osv or orm.model?? any suggestion please..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
osv is a class and an OpenERP descriptor class and all the class( model) must inherit it for OpenERP module deployment.
osv class inside in OSV module in OpenERP server , which content all the OpenERP properties like you can see _column, _defaults and other many things there such as nameetc so we must inherit in our openerp model (class)
In version 7,
The ORM, short for Object-Relational Mapping, is a central part of OpenERP.
In OpenERP, the data model is described and manipulated through Python classes and objects. It is the ORM job to bridge the gap -- as transparently as possible for the developer -- between Python and the underlying relational database (PostgreSQL), which will provide the persistence we need for our objects.
osv.osv is deprecated and it still works for backward compatibility. You should use orm.Model instead.
In version 8+,
The model defnition is
orm.Model ---> models.Model
orm.TransientModel ---> models.TransientModel
thanks Dhinesh
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
OSV is depricated in V8.0 (though still works but may be completely removed in 9.0). You can use model.Models instead.