Do not fail to translate model field that does not exist

(grafted from e63effe09ce756cd0e66ad635255dedc8d807c7b)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2025-01-29 23:23:22 +01:00
1 parent 2be6c7b64d
commit c8dd23d259
1 file changed
+1 -1
+1 -1
View File
@@ -329,7 +329,7 @@ class Translation(ModelSQL, ModelView):
try:
field = getattr(
pool.get(record.model.model), record.name)
except KeyError:
except (KeyError, AttributeError):
continue
translations[record.id] = ''
if ttype == 'field':