~openerp-dev/openerp-web/7.0-opw-586613-msh

Viewing all changes in revision 3821.

  • Committer: Xavier Morel
  • Date: 2013-03-07 12:42:22 UTC
  • Revision ID: xmo@openerp.com-20130307124222-1ypzfopbktxmad4z
[FIX] broken inference of groupby groups in search view filters

Before the valpocalypse, filter contexts were "literal" (parsed
objects) when reaching the search view, and `.attrs.context.group_by`
would return the right thing (namely the group_by attribute of the
context object).

After the valpocalypse, contexts & domains on view fields (and
filters) are not evaluated on the Python side anymore and reach view
objects as strings, the access chain above thus always returns a falsy
value (undefined) as strings don't have a .group_by.

Fix FilterGroup to correctly parse filter's @context before trying to
see if it has a group_by.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: