orm: can't search inactive elements
Bug #291146 reported by
Xavier ALT
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-
openobject-
Related branches
Changed in openerp: | |
status: | New → Fix Committed |
Changed in openerp: | |
status: | Fix Committed → New |
Changed in openerp: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed on trunk