From fa0f687337a1cdb69826899831ac441c22cf60a3 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 19 Jun 2023 13:44:18 +0000 Subject: [PATCH] [FIX] web: orm: protect nameGet 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 "nameGet" was not protected due to a "typo". closes odoo/odoo#125683 X-original-commit: c2b9f14fa9fbf67063b8885b698ea17a63d79454 Signed-off-by: Géry Debongnie Signed-off-by: Mathieu Duckerts-Antoine --- 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 bb2cf6973b0..4b2247dfa03 100644 --- a/addons/web/static/src/core/orm_service.js +++ b/addons/web/static/src/core/orm_service.js @@ -298,7 +298,7 @@ export const ormService = { async: [ "call", "create", - "name_get", + "nameGet", "read", "readGroup", "search",