From b16bc964110e36ee294d4d7a2673377c05a9ad3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 9 May 2012 11:24:37 +0200 Subject: [PATCH] [IMP] mail.message: added 'oldname' attribute to the content_subtype field that was subtype bzr revid: tde@openerp.com-20120509092437-j2hzm31vso93v6up --- addons/mail/mail_message.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index 38234ddae0e..3d3df37cc71 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -119,8 +119,9 @@ class mail_message_common(osv.TransientModel): 'message_id': fields.char('Message-Id', size=256, help='Message unique identifier', select=1, readonly=1), 'references': fields.text('References', help='Message references, such as identifiers of previous messages', readonly=1), 'content_subtype': fields.char('Message content subtype', size=32, - help="Type of message, usually 'html' or 'plain', used to " - "select plain-text or rich-text contents accordingly", readonly=1), + oldname="subtype", readonly=1, + help="Type of message, usually 'html' or 'plain', used to \ + select plain-text or rich-text contents accordingly"), 'body_text': fields.text('Text contents', help="Plain-text version of the message"), 'body_html': fields.text('Rich-text contents', help="Rich-text/HTML version of the message"), 'body': fields.function(get_body, fnct_search = search_body, string='Message content', type='text',