orm: can't search inactive elements

Bug #291146 reported by Xavier ALT
2
Affects Status Importance Assigned to Milestone
OpenERP
Fix Released
Undecided
Unassigned

Bug Description

Bugfix: Search inactive (active = False) elements will always fail

Even if args contain ['active','=',0], _where_calc function add an active test, leading to 'where active = True and active = False' SQL queries.

Steps to reproduce bug:
  - Mark some Partners as `inactive'.
  - Filter on Partners (Active = No)
    * No Result returned.

On PostgreSQL side, this will lead to this query (which obviously won't work):
   2008-10-30 15:53:43 CET LOG: instruction : select res_partner.id from "res_partner" where (res_partner.active = 'True') AND (res_partner.active = 'False') order by name limit 80

Used Version Infos:
openobject-server/trunk: r1212
openobject-client/trunk: r693

Revision history for this message
Xavier ALT (dex-phx) wrote :
description: updated
Changed in openerp:
status: New → Fix Committed
Changed in openerp:
status: Fix Committed → New
Revision history for this message
Husen Daudi (husendaudi) wrote :

Fixed on trunk

Changed in openerp:
status: New → Fix Committed
Changed in openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.