~openerp-commiter/openobject-server/trunk-fix-uninstallation-sus

Viewing all changes in revision 3358.

  • Committer: Olivier Dony
  • Date: 2011-02-21 17:27:57 UTC
  • Revision ID: odo@openerp.com-20110221172757-qepq5osjqgd9uf8x
[IMP] orm.fields_view_get: allow passing a view_id from a different model for creative inheritance

There are cases where several objects would like to use a single view, but
by default they cannot because a view belongs to only one model.
With this change, it becomes possible to do inheritance "by copy", reusing
a view from another model without having to redefine it, just by specifying
its view_id in the relevant actions. If the original view needs to be modified,
it is also possible to explicitly inherit the parent view from the other
model, and the effect will be what is expected: the child view can be
specified in an action, and will be the result of the inheritance applied
on the parent view; but on the other hande the parent view itself is
unaffected when used in the context of its own model.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: