Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr / hr.py
index faf2213..92bde22 100644 (file)
@@ -116,7 +116,6 @@ class hr_job(osv.osv):
             help="By default 'In position', set it to 'In Recruitment' if recruitment process is going on for this job position."),
     }
     _defaults = {
-        'expected_employees': 1,
         'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr.job', context=c),
         'state': 'open',
     }
@@ -216,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