~openerp-dev/openobject-server/trunk-product-variants-ref-chm

Viewing all changes in revision 5210.

  • Committer: Xavier Morel
  • Date: 2014-05-06 14:41:17 UTC
  • Revision ID: xmo@openerp.com-20140506144117-brna511vbpp8mqbe
[IMP] make mode handling more regular

Before this commit, @mode=primary would be sorta-ignored[0] if the current
view and its parent had the same model: the current view would *still* get
applied (as an extension) when asking OpenERP for its parent. This commit
makes mode=primary views behave regularly, they are *never* applied when
asking for their parent, only when asking for them or their children.

This allows "forking" views, and using extended views in some contexts without
breaking or duplicating the original view

[0] there was actually a problem when asking for the current view directly,
    first its parent would be resolved by applying it, then it would be
    applied to resolve itself, the view would thus get applied twice (oops)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: