[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:
parent
f65c913027
commit
15ee4d83c9
|
@ -58,7 +58,7 @@ class mail_compose_message(osv.TransientModel):
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
# incredible hack of the day: size=-1 means we want an int db column instead of an str one
|
# 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):
|
def send_mail(self, cr, uid, ids, context=None):
|
||||||
|
|
Loading…
Reference in New Issue