[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user