Merge pull request #25024 from riandrys/fix_get_label_from_fieldname_translation
fix: translation get label from fieldname
This commit is contained in:
commit
36ba02e71a
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ class BaseDocument:
|
|||
"""
|
||||
df = self.meta.get_field(fieldname)
|
||||
if df:
|
||||
return df.label
|
||||
return _(df.label) if df.label else None
|
||||
|
||||
def update_modified(self):
|
||||
"""Update modified timestamp"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue