[FIX] web: orm: protect nameGet

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 <ged@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2023-06-20 00:24:06 +02:00
parent 800147ce9f
commit fa0f687337
+1 -1
View File
@@ -298,7 +298,7 @@ export const ormService = {
async: [
"call",
"create",
"name_get",
"nameGet",
"read",
"readGroup",
"search",