From 877f190f60def689a0c86760ba94c0c11d6078f9 Mon Sep 17 00:00:00 2001 From: Pierre Rousseau Date: Mon, 19 Sep 2022 10:37:51 +0000 Subject: [PATCH] [FIX] spreadsheet: fix test data Before this revision, the fields of `partner` were not searchable, which was not correct. This revision fixes that. Part of task-id 2987871 X-original-commit: 2c180660e412bd0f52da920bdf8f96b200fc3aa2 Part-of: odoo/odoo#102688 --- addons/spreadsheet/static/tests/utils/data.js | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/addons/spreadsheet/static/tests/utils/data.js b/addons/spreadsheet/static/tests/utils/data.js index 206a690c2ad..3082f8feb64 100644 --- a/addons/spreadsheet/static/tests/utils/data.js +++ b/addons/spreadsheet/static/tests/utils/data.js @@ -266,22 +266,41 @@ export function getBasicData() { searchable: true, group_operator: "sum", }, - bar: { string: "Bar", type: "boolean", store: true, sortable: true }, - name: { string: "name", type: "char", store: true, sortable: true }, - date: { string: "Date", type: "date", store: true, sortable: true }, + bar: { + string: "Bar", + type: "boolean", + store: true, + sortable: true, + searchable: true, + }, + name: { + string: "name", + type: "char", + store: true, + sortable: true, + searchable: true, + }, + date: { + string: "Date", + type: "date", + store: true, + sortable: true, + searchable: true, + }, create_date: { string: "Creation Date", type: "datetime", store: true, sortable: true, }, - active: { string: "Active", type: "bool", default: true }, + active: { string: "Active", type: "bool", default: true, searchable: true }, product_id: { string: "Product", type: "many2one", relation: "product", store: true, sortable: true, + searchable: true, }, tag_ids: { string: "Tags", @@ -289,6 +308,7 @@ export function getBasicData() { relation: "tag", store: true, sortable: true, + searchable: true, }, probability: { string: "Probability", @@ -309,6 +329,7 @@ export function getBasicData() { relation: "res.currency", store: true, sortable: true, + searchable: true, }, pognon: { string: "Money!", @@ -317,6 +338,7 @@ export function getBasicData() { store: true, sortable: true, group_operator: "avg", + searchable: true, }, }, records: [