Use defauldict for XML ID getter instead of construct a complete dict

This commit is contained in:
Cédric Krier
2026-04-24 23:02:57 +02:00
parent 0acec62e0b
commit 25ffdbff7b
+1 -1
View File
@@ -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__),