From 25ffdbff7b66fecd34671924f85c80660dcccd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 24 Apr 2026 23:02:57 +0200 Subject: [PATCH] Use defauldict for XML ID getter instead of construct a complete dict --- trytond/trytond/model/modelstorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/modelstorage.py b/trytond/trytond/model/modelstorage.py index 18cf3edf96..a612820a40 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -898,7 +898,7 @@ class ModelStorage(Model): pool = Pool() ModelData = pool.get('ir.model.data') - ids = dict.fromkeys(map(int, records)) + ids = defaultdict(type(None)) with without_check_access(): for record in ModelData.search([ ('model', '=', cls.__name__),