Skip to content

Commit

Permalink
[FIX] web: tests: correct pass hasSelectors
Browse files Browse the repository at this point in the history
The attribute is true by default, but when it is set to `false`
in a test, it was not correctly passed in the view.

Note that it has no impact currently in the tests.

closes odoo#32175

Signed-off-by: Aaron Bohy (aab) <[email protected]>
  • Loading branch information
mgeubelle committed Mar 27, 2019
1 parent da711b9 commit 32ab342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/web/static/tests/helpers/test_utils_create.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async function createView(params) {
this.loadParams.groupedBy = params.groupBy || viewOptions.groupBy || [];
},
});
if (params.hasSelectors) {
if ('hasSelectors' in params) {
viewOptions.hasSelectors = params.hasSelectors;
}

Expand Down

0 comments on commit 32ab342

Please sign in to comment.