[IMP] hr_attendance: use correct label in warning
Lable for the field `barcode` is `Badge ID`. With this commit, We display the correct field name in the Warning. closes odoo/odoo#50700 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class HrEmployeeBase(models.AbstractModel):
|
||||
employee = self.sudo().search([('barcode', '=', barcode)], limit=1)
|
||||
if employee:
|
||||
return employee._attendance_action('hr_attendance.hr_attendance_action_kiosk_mode')
|
||||
return {'warning': _('No employee corresponding to barcode %(barcode)s') % {'barcode': barcode}}
|
||||
return {'warning': _("No employee corresponding to Badge ID '%(barcode)s.'") % {'barcode': barcode}}
|
||||
|
||||
def attendance_manual(self, next_action, entered_pin=None):
|
||||
self.ensure_one()
|
||||
|
||||
Reference in New Issue
Block a user