[IMP] Partial restrict operator for domains.
authorP. Christeas <p_christ@hol.gr>
Thu, 9 Jul 2009 18:17:18 +0000 (21:17 +0300)
committerP. Christeas <p_christ@hol.gr>
Thu, 9 Jul 2009 18:17:18 +0000 (21:17 +0300)
commit6dc7389be2721421e33c16c16f943c61d46dd50e
treedcc38fe2aec26286a584399ecee1a75ce5e45e95
parent05f8d8380c65e970dc4cb4530d4dce356e39b34b
[IMP] Partial restrict operator for domains.

In some cases, when the domain is restricted based on an optional field,
we want it to match anything if that field is not set. There, use the
'=?' operator to match "left = right OR right IS NULL/False".

eg. match the production lot among all products, when product is not
specified (helps barcode scanners pick up the serial no.).

bzr revid: p_christ@hol.gr-20090709181718-dk3ykimzddl9l07o
bin/osv/expression.py