Skip to content
Snippets Groups Projects
Commit 15ee4d83 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[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
parent f65c9130
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment