diff options
| author | Wolfgang Taferner <wtaferner@users.noreply.github.com> | 2017-03-26 21:00:36 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-03-28 15:02:47 +0200 |
| commit | 8e7f34c32304d8c0f48259fd956d64392ed1007f (patch) | |
| tree | 11599eed5534be9e4d6a38efc8492921a5d30bf2 /addons/web/static/src/js/pyeval.js | |
| parent | 59a63978677e1dae7a665ffc86df1414c9784d26 (diff) | |
[FIX] web: domains might be undefined, so we check
Introduced recently in b2d66d0c1468b9d321d9ffa5782e370e92525a43
opw-726354
Closes #16068
Diffstat (limited to 'addons/web/static/src/js/pyeval.js')
| -rw-r--r-- | addons/web/static/src/js/pyeval.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/pyeval.js b/addons/web/static/src/js/pyeval.js index a651c7d8bfa..cf57bd86d4f 100644 --- a/addons/web/static/src/js/pyeval.js +++ b/addons/web/static/src/js/pyeval.js @@ -854,7 +854,8 @@ var result_domain = []; // Normalize only if the first domain is the array ["|"] or ["!"] var need_normalization = ( - domains.length > 0 + domains + && domains.length > 0 && domains[0].length === 1 && (domains[0][0] === "|" || domains[0][0] === "!") ); |
