Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
You can create a view for an
AbstractModel model that represents the common features of your models and inherit that view as a template for each model. You don't need to actually inherit the model itself.
View inheritance does not change the inherited view when the target model is different; it is applied on on the target model. You can have one view per model because all inherited views will be applied for each model regardless the
view_id defined in action.
A similar concept is used in
stock module in v7. The models
stock.picking.out are created as prototype inheritance of
stock.picking (but all models are sharing the same database table using
_table = "stock_picking"). New views are created by inheriting from
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/15/13, 10:33 AM|
|Seen: 1698 times|
|Last updated: 3/16/15, 8:10 AM|