[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
This commit is contained in:
Christophe Simonis 2014-08-28 19:04:14 +02:00
parent f65c913027
commit 15ee4d83c9
1 changed files with 1 additions and 1 deletions

View File

@ -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):