From 15ee4d83c937ed8df3c25a46894280a36b48f468 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 28 Aug 2014 19:04:14 +0200 Subject: [PATCH] [FIX] email_template: remove group restriction on field mail.compose.message.template_id This was added as a security check, but access to this field is need by the wizard itself. As non employee users can't read/create email templates, this will not be problematic --- addons/email_template/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/wizard/mail_compose_message.py b/addons/email_template/wizard/mail_compose_message.py index f39cc7f3a90..22bb53beae3 100644 --- a/addons/email_template/wizard/mail_compose_message.py +++ b/addons/email_template/wizard/mail_compose_message.py @@ -58,7 +58,7 @@ class mail_compose_message(osv.TransientModel): _columns = { # incredible hack of the day: size=-1 means we want an int db column instead of an str one - 'template_id': fields.selection(_get_templates, 'Template', size=-1, groups="base.group_user"), + 'template_id': fields.selection(_get_templates, 'Template', size=-1), } def send_mail(self, cr, uid, ids, context=None):