From c9ed4fcbf79a8179aea792cb4cb23a9f00f24907 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 12 Jul 2016 09:20:19 +0200 Subject: [PATCH] Call rec_name function on Attachment and Notes title issue2350 review31321002 --- tryton/gui/window/attachment.py | 2 +- tryton/gui/window/note.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')