[FIX] web: orm: protect webSearchRead

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 <ged@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2023-06-20 09:11:04 +02:00
parent e502b972c8
commit 850d52d0ae
+1 -1
View File
@@ -304,7 +304,7 @@ export const ormService = {
"search",
"searchRead",
"unlink",
"web_search_read",
"webSearchRead",
"write",
],
start(env, { rpc, user }) {