diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-05-20 15:33:10 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-05-20 15:33:35 +0200 |
| commit | 54a90179bb477a0ce3814395a38e5e98c8e9e477 (patch) | |
| tree | 8c7ba1552283704b197b537f1e17a6e7934344ae /addons/barcodes/static/src/js/barcode_parser.js | |
| parent | cc61d467fafac83b9785fd506ae86f2722e28288 (diff) | |
[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
Diffstat (limited to 'addons/barcodes/static/src/js/barcode_parser.js')
0 files changed, 0 insertions, 0 deletions
