diff options
| author | Raphael Collet <rco@openerp.com> | 2016-02-04 17:29:15 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-02-04 17:29:15 +0100 |
| commit | 35bcd2c2a497c02d496568203fb241f99691642a (patch) | |
| tree | b047240cc22a4ddc7f08f797aa8212f8922782eb /addons/web/static/src/xml/base_common.xml | |
| parent | e72afefaa7658ad455542023d9951dd298892cf3 (diff) | |
| parent | d273415beb658ddef136769ccadda3f0a41e68ae (diff) | |
[MERGE] branch 'master-models_inheritance-rco'
Modify the implementation of inheritance (with `_inherit`) between models, in
such a way that extensions to a given model are visible to all its children
models.
Inheriting model A to extend it adds the current class to A's model class.
This works like before, except we do not recreate the model class.
Inheriting from A in B adds A's model class as a parent of B's model class, so
that all modifications in A's model class are visible in B's model class.
Moreover, the `BaseModel` class has been introduced as an abstract model
`base`, and is implicitly inherited by all other models. That model may be
extended to add a feature on all models, or override a method on all models.
Diffstat (limited to 'addons/web/static/src/xml/base_common.xml')
0 files changed, 0 insertions, 0 deletions
