expression: fix "m2o, m2m in []" expressions, bug 626806
authorP. Christeas <p_christ@hol.gr>
Mon, 29 Nov 2010 18:34:13 +0000 (20:34 +0200)
committerP. Christeas <p_christ@hol.gr>
Mon, 29 Nov 2010 18:34:13 +0000 (20:34 +0200)
commit12f5aa0a1874e765f927b2fab293c2c5f0ad2652
tree115f24ac1af0bcacf8928310ab3603bd3ccab61a
parent0f1ab5e6efd3e421ad2b9f490665c23e824f9c66
expression: fix "m2o, m2m in []" expressions, bug 626806

After some discussions, we decided that the desired behavior of the
ORM for one2many and many2many fields should be:
 (foobar_id,'in', []) => empty result, because the list is empty
 (foobar_id,'in',False) => find records that don't have a foobar

bzr revid: p_christ@hol.gr-20101129183413-yi1jzdwr1tis7d8t
bin/osv/expression.py