Do not fail to translate model field that does not exist
(grafted from e63effe09ce756cd0e66ad635255dedc8d807c7b) --HG-- branch : 6.0
This commit is contained in:
1 parent
2be6c7b64d
commit
c8dd23d259
1 file changed
+1
-1
@@ -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':
|
||||
|
||||
Reference in new issue
Block a user