← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 740799] Re: [filtering] does not support hierarchy

 

If it is not the intended behavior why to define hierarchical categories
then? It was possible and ok in version 5.

On 18 mai 2011, at 22:19, "Vo Minh Thu \(OpenERP\)"
<740799@xxxxxxxxxxxxxxxxxx> wrote:

> 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 direct subscriber
> of the bug.
> 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.
> 
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-server/+bug/740799/+subscribe

-- 
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.


References