From ab40ea51b5a7895f5b66cf8b410de1b713a81196 Mon Sep 17 00:00:00 2001 From: "Yogesh (OpenERP)" Date: Tue, 15 Feb 2011 16:39:24 +0530 Subject: [PATCH 1/5] [IMP] email_template :- improve search view and remove duplicate fields. bzr revid: ysa@tinyerp.com-20110215110924-bvp0gwwjskq3iolh --- addons/email_template/email_template.py | 16 ++++++++-------- addons/emails/email_message.py | 4 ++-- addons/emails/email_view.xml | 19 +++++++++++++++---- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index 99b2be14923..6e8cf326649 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -86,14 +86,14 @@ This is useful for CRM leads for example"), help="The subject of email." " Placeholders can be used here.", translate=True), - 'description':fields.text( - 'Standard Body (Text)', - help="The text version of the mail", - translate=True), - 'body_html':fields.text( - 'Body (Text-Web Client Only)', - help="The text version of the mail", - translate=True), +# 'description':fields.text( +# 'Standard Body (Text)', +# help="The text version of the mail", +# translate=True), +# 'body_html':fields.text( +# 'Body (Text-Web Client Only)', +# help="The text version of the mail", +# translate=True), 'user_signature':fields.boolean( 'Signature', help="the signature from the User details" diff --git a/addons/emails/email_message.py b/addons/emails/email_message.py index 77557738262..10010daf684 100644 --- a/addons/emails/email_message.py +++ b/addons/emails/email_message.py @@ -67,7 +67,7 @@ def format_date_tz(date, tz=None): class email_message_template(osv.osv_memory): _name = 'email.message.template' _columns = { - 'name':fields.text('Subject'), + 'name':fields.text('Subject', translate=True), 'model': fields.char('Object Name', size=128, select=1), 'res_id': fields.integer('Resource ID', select=1), 'date': fields.datetime('Date'), @@ -82,7 +82,7 @@ class email_message_template(osv.osv_memory): 'sub_type': fields.char('Sub Type', size=32), 'headers': fields.char('x_headers',size=256), 'priority':fields.integer('Priority'), - 'description': fields.text('Description'), + 'description': fields.text('Description', translate=True), 'smtp_server_id':fields.many2one('email.smtp_server', 'SMTP Server'), } _sql_constraints = [] diff --git a/addons/emails/email_view.xml b/addons/emails/email_view.xml index 656f530e1fa..7afda937975 100644 --- a/addons/emails/email_view.xml +++ b/addons/emails/email_view.xml @@ -76,6 +76,8 @@ + +