c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24592
[Bug 740799] Re: [filtering] does not support hierarchy
Ruud Riem-Vis,
The behavior you are describing is not a limition (and not a bug). The
intended usage of the field 'category' on the search view is to filter
on a specific category.
The search view is specified at
openerp/addons/base/res/partner/partner_view.xml:342 and use,
purposefuly, a simple 'field' element.
It is possible to get the behavior you want by changing the search view
and using an attribute operator="child_of".
Well, actually it works for many2one fields but the category on a
partner is a many2many and a bug exists. The proposed patch above should
correct that.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/740799
Title:
[filtering] does not support hierarchy
Status in OpenERP Server:
Fix Committed
Bug description:
In v6, the filtering cannot be performed on "view"-type items in the
category field of a partner for example. Consider the following case:
Define partner categories as follows:
man
man->thin
man->thick
woman
woman->thin
woman->thick
Now if you have a set of partners, you can define a filter on "thin",
on "thick" but not on "man" or "woman" or "woman thick". This means
that you cannot find back a thin woman in a filter for example.
I believe this is an unwanted limitation of the filter mechanism.
Follow ups
References