From 850d52d0ae309d9f5c5d964fdcbd02f8e7cd7b58 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 19 Jun 2023 13:31:58 +0000 Subject: [PATCH] [FIX] web: orm: protect webSearchRead MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The values for the key "async" found in some services is used to declare async methods that should be "protected". The hook "useService" makes sure that no code used to process results of those protected methods is executed by a destroyed component. The orm method "webSearchRead" was not protected due to a "typo". closes odoo/odoo#125688 X-original-commit: 2899888a2449b42b2c5d37846fc9411da6f7f9cc Signed-off-by: Géry Debongnie --- addons/web/static/src/core/orm_service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/core/orm_service.js b/addons/web/static/src/core/orm_service.js index 4b2247dfa03..abb5365c841 100644 --- a/addons/web/static/src/core/orm_service.js +++ b/addons/web/static/src/core/orm_service.js @@ -304,7 +304,7 @@ export const ormService = { "search", "searchRead", "unlink", - "web_search_read", + "webSearchRead", "write", ], start(env, { rpc, user }) {