summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2018-12-26 16:01:18 +0000
committerMathieu Duckerts-Antoine <dam@odoo.com>2019-02-12 12:45:51 +0000
commit01c159fd9fefd9863d2eed5a1f75f709595de294 (patch)
tree1a3c6cf5fe68a46c584c487d6ed48c2dcb7fccdd /doc/reference/javascript_reference.rst
parent6d5a993cf74173456734cccd2ea2c13027c04bbd (diff)
[FIX] web: quotes and backslashes in search view
The commit 6d3ada178f7caf6ea159b871648ca4c440c7845b aimed to solve problems occuring whith (single or double) quotes when creating new custom filters. Unfortunately, the point was missed and bugs were still present. The present commit solves the orginial problem satisfactorily. There was also a problem in the management of backslashes. Type '\\' in the search bar would lead to a domain like [('...', 'ilike', '\\\\\\\\\\\\\\\\')]. This has also been fixed. Note that it is necessary to input "\\" if one is looking for a backslash in db (as before). A remark on the _formatAST function (py_utils.js): We deescape only the chars `'`, `"`, and `\` because it does not seem possible to produce a string in the search view that would intend a search for a line return or a tab for example. A general remark: Domains should always be in normalized form. In that way they could be manipulated and combined together without a tokenization/parsing! closes odoo/odoo#29756
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions