From 7a4182ad6a6d7ff7dd4322c26ebb97ce46a8facd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 29 Jan 2025 23:23:22 +0100 Subject: [PATCH] Do not fail to translate model field that does not exist --- trytond/trytond/ir/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/ir/translation.py b/trytond/trytond/ir/translation.py index 661b4c2ccd..dc03d2861b 100644 --- a/trytond/trytond/ir/translation.py +++ b/trytond/trytond/ir/translation.py @@ -386,7 +386,7 @@ class Translation( try: field = getattr( pool.get(record.model), record.name) - except KeyError: + except (KeyError, AttributeError): continue translations[record.id] = '' if ttype == 'field':