Unquoted 0 in domain is converted to None when generating SQL
Bug #677509 reported by
Daniel Watkins (credativ)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Incomplete
|
Low
|
OpenERP's Framework R&D |
Bug Description
For an act_window definition, we have the following domain set:
domain=
This works fine. However, if we have:
domain=
(i.e. without the quotes around 0) then we end up with qu1 and qu2 in the search() method on osv.orm containining
((1=1) AND (made_batches_
and
[43, 46, 49, 50, 51, 52, 53, 101, None]
This will produce a WHERE clause including "(made_
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → Invalid |
status: | Invalid → Confirmed |
Changed in openobject-server: | |
status: | New → In Progress |
To post a comment you must log in.
Hello Daniel,
I would like to know that what is type of the field unallocated_ products?
I am testing few scenarios, but it fails only with Boolean fields.
Thanks for reporting.