[IMP] hr_employee: notifciations of new employees are now of subtype discussion, in order to be pushed.

bzr revid: tde@openerp.com-20121224122919-siolnbikomd4e67a
This commit is contained in:
Thibault Delavallée
2012-12-24 13:29:19 +01:00
parent f49cf3ad50
commit 6a7e93df47
+3 -1
View File
@@ -215,7 +215,9 @@ class hr_employee(osv.osv):
try:
(model, mail_group_id) = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'mail', 'group_all_employees')
employee = self.browse(cr, uid, employee_id, context=context)
self.pool.get('mail.group').message_post(cr, uid, [mail_group_id], body='Welcome to %s! Please help them take the first steps with OpenERP!' % (employee.name), context=context)
self.pool.get('mail.group').message_post(cr, uid, [mail_group_id],
body='Welcome to %s! Please help them take the first steps with OpenERP!' % (employee.name),
subtype='mail.mt_comment', context=context)
except:
pass # group deleted: do not push a message
return employee_id