summaryrefslogtreecommitdiff
path: root/odoo/addons/test_testing_utilities/menu.xml
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2019-02-12 10:17:58 +0000
committerMathieu Duckerts-Antoine <dam@odoo.com>2019-02-15 12:38:22 +0000
commit84abddfe904273daaa3be744b974c8cce98c30fb (patch)
tree47713cc8496aa8f0806c25364ddb8a7f4ddf3240 /odoo/addons/test_testing_utilities/menu.xml
parent988e7690736be038dea7c52f3ecd4797fa793366 (diff)
[FIX] web: quotes and backslashes in search view
The commit 6d3ada1 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#31025
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
0 files changed, 0 insertions, 0 deletions