odoo/openerp/osv
Denis Ledoux 54a90179bb [FIX] expression: ensure tuple to compare leaf with TRUE/FALSE leaf
When setting a custom filter with as domain
[(0, '=', 1)]

the domain was rejected, because (0, '=', 1) wasn't
considered as a valid leaf, while it is.

This is because the Javascript converts this domain
using list instead of tuple
[(0, '=', 1)] -> [[0, '=', 1]]

And therefore, comparing the "list" leaf
to the TRUE/FALSE leaf tuple failed.

Ensuring "element" as a tuple solves the issue.

opw-640306
2015-05-20 15:33:35 +02:00
..
__init__.py API docs: settings file and titles at modules 2011-06-23 12:03:57 +03:00
expression.py [FIX] expression: ensure tuple to compare leaf with TRUE/FALSE leaf 2015-05-20 15:33:35 +02:00
fields.py [FIX] fields: apply user timezone in display name for models using a datetime as name 2015-01-05 12:48:38 +01:00
orm.py [FIX] orm: export on empty one2many 2015-04-07 15:54:01 +02:00
osv.py [IMP] osv: display full traceback in terminal (not client side) when a check fails instead of minimal error 2014-01-08 15:05:54 +01:00
query.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00