From df123df0fd6110a268cb862ae438b893abcb115a Mon Sep 17 00:00:00 2001 From: Abdurrahman Saber Date: Tue, 11 Nov 2025 17:32:02 +0200 Subject: [PATCH] [IMP] odex_mobile: log an error instead of blocking the whole operation --- odex25_mobile/odex_mobile/models/push_notification_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))