[IMP] add some more explanations for the behavior of the mode attribute on views

This commit is contained in:
Xavier Morel 2014-05-27 12:20:04 +02:00
parent cdd89f4ae6
commit 9555b32c7b
1 changed files with 11 additions and 2 deletions

View File

@ -144,8 +144,17 @@ class view(osv.osv):
'mode': fields.selection(
[('primary', "Base view"), ('extension', "Extension View")],
string="View inheritance mode",
required=True),
string="View inheritance mode", required=True,
help="""Only applies if this view inherits from an other one (inherit_id is not False/Null).
* if extension (default), if this view is requested the closest primary view
is looked up (via inherit_id), then all views inheriting from it with this
view's model are applied
* if primary, the closest primary view is fully resolved (even if it uses a
different model than this one), then this view's inheritance specs
(<xpath/>) are applied, and the result is used as if it were this view's
actual arch.
"""),
}
_defaults = {
'mode': 'primary',