diff --git a/odex25_mobile/odex_mobile/models/push_notification_mixin.py b/odex25_mobile/odex_mobile/models/push_notification_mixin.py index 3b8980422..28adb6452 100644 --- a/odex25_mobile/odex_mobile/models/push_notification_mixin.py +++ b/odex25_mobile/odex_mobile/models/push_notification_mixin.py @@ -34,7 +34,7 @@ class PushNotificationMixin(models.AbstractModel): return credentials.token for rec in self: if not rec.fcm_token: - raise UserError(_("FCM Token is required for record %s:%s") % (rec._name, rec.name)) + _logger.error(f"FCM Token is required for record <{rec._name}:{rec.id}>") if not self.env.user.company_id.service_account: raise UserError(_("Firebase Service Account file is required"))