← Back to team overview

openerp-india team mailing list archive

[Bug 1062795] [NEW] Search on many2many with negative operator gives wrong results

 

Public bug reported:

When you have a category X and assigned it to one or more partners, it
is currently impossible to search for partners that do not have this
category.

Steps to reproduce
===============
On a new database,

Create partner A
Create partner B
Create partner C
Create partner AB
Create category A
Create category B
Assign category A to partner A
Assign category B to partner B
Assign both categories A and B to partner AB
Do not assign any categories to partner C

Now search for partner with advanced filter on category 'not equal to' A

Expected results
=============
All partners that are not assigned category A (i.e. partners B and C)

Actual results
===========
All partners that are assigned any category other than A, including partners that also have category A (i.e. partners B and AB)

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1062795

Title:
  Search on many2many with negative operator gives wrong results

Status in OpenERP Server:
  New

Bug description:
  When you have a category X and assigned it to one or more partners, it
  is currently impossible to search for partners that do not have this
  category.

  Steps to reproduce
  ===============
  On a new database,

  Create partner A
  Create partner B
  Create partner C
  Create partner AB
  Create category A
  Create category B
  Assign category A to partner A
  Assign category B to partner B
  Assign both categories A and B to partner AB
  Do not assign any categories to partner C

  Now search for partner with advanced filter on category 'not equal to'
  A

  Expected results
  =============
  All partners that are not assigned category A (i.e. partners B and C)

  Actual results
  ===========
  All partners that are assigned any category other than A, including partners that also have category A (i.e. partners B and AB)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1062795/+subscriptions


Follow ups

References