From 1676bf3c633c0838411987daf72e8980889013c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Apr 2011 16:34:50 +0200 Subject: [PATCH] Rename resume into summary --- trytond/ir/attachment.py | 8 ++++---- trytond/ir/attachment.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/trytond/ir/attachment.py b/trytond/ir/attachment.py index 1d691f4505..1979ac44b1 100644 --- a/trytond/ir/attachment.py +++ b/trytond/ir/attachment.py @@ -34,8 +34,8 @@ class Attachment(ModelSQL, ModelView): 'invisible': Not(Equal(Eval('type'), 'data')), }, depends=['type']), 'get_data', setter='set_data') description = fields.Text('Description') - resume = fields.Function(fields.Char('Resume', - on_change_with=['description']), 'get_resume') + summary = fields.Function(fields.Char('Summary', + on_change_with=['description']), 'get_summary') resource = fields.Reference('Resource', selection='models_get', select=1) link = fields.Char('Link', states={ 'invisible': Not(Equal(Eval('type'), 'link')), @@ -174,11 +174,11 @@ class Attachment(ModelSQL, ModelView): 'collision': collision, }) - def get_resume(self, ids, name): + def get_summary(self, ids, name): return dict((x.id, firstline(x.description or '')) for x in self.browse(ids)) - def on_change_with_resume(self, values): + def on_change_with_summary(self, values): return firstline(values.get('description') or '') def get_last_modification(self, ids, name): diff --git a/trytond/ir/attachment.xml b/trytond/ir/attachment.xml index 4edd987245..bd5ec89d45 100644 --- a/trytond/ir/attachment.xml +++ b/trytond/ir/attachment.xml @@ -47,7 +47,7 @@ this repository contains the full copyright notices and license terms. --> - +