[FIX] hr_presence: change error message on sms button

In this commit, the error message has been changed
because on clicking sms button it shows field value inserted
for Work Mobile. Hence word phone was changed to mobile.

task:2065143

closes odoo/odoo#36398

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
This commit is contained in:
Meghna Jaswani
2019-09-04 05:22:10 +00:00
parent c0febb02d8
commit e2e3ad78bf
+1 -1
View File
@@ -134,7 +134,7 @@ class Employee(models.AbstractModel):
if not self.env.user.has_group('hr.group_hr_manager'):
raise UserError(_("You don't have the right to do this. Please contact an Administrator."))
if not self.mobile_phone:
raise UserError(_("There is no professional phone for this employee."))
raise UserError(_("There is no professional mobile for this employee."))
context = dict(self.env.context)
context.update(default_res_model='hr.employee', default_res_id=self.id, default_composition_mode='comment', default_number_field_name='mobile_phone')