[FIX] web: tests: correct pass hasSelectors

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/odoo#32175

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Martin Geubelle
2019-03-27 15:36:59 +00:00
parent da711b9c0b
commit 32ab3422f0
@@ -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;
}