diff --git a/tryton/gui/window/attachment.py b/tryton/gui/window/attachment.py index 26aaaeba2f..67916c0def 100644 --- a/tryton/gui/window/attachment.py +++ b/tryton/gui/window/attachment.py @@ -19,7 +19,7 @@ class Attachment(WinForm): def __init__(self, record, callback=None): self.resource = '%s,%s' % (record.model_name, record.id) self.attachment_callback = callback - title = _('Attachments (%s)') % (record.rec_name) + title = _('Attachments (%s)') % (record.rec_name()) screen = Screen('ir.attachment', domain=[ ('resource', '=', self.resource), ], mode=['tree', 'form'], exclude_field='resource') diff --git a/tryton/gui/window/note.py b/tryton/gui/window/note.py index 1757cf4d89..bf0f2ebbd6 100644 --- a/tryton/gui/window/note.py +++ b/tryton/gui/window/note.py @@ -14,7 +14,7 @@ class Note(WinForm): def __init__(self, record, callback=None): self.resource = '%s,%s' % (record.model_name, record.id) self.note_callback = callback - title = _('Notes (%s)') % (record.rec_name) + title = _('Notes (%s)') % (record.rec_name()) screen = Screen('ir.note', domain=[ ('resource', '=', self.resource), ], mode=['tree', 'form'], exclude_field='resource')