Merge pull request #5343 from expsa/improve_logging

[IMP] odex_mobile: log an error instead of blocking the whole operation
This commit is contained in:
abdurrahman-saber 2025-11-11 17:33:11 +02:00 committed by GitHub
commit 43abc1c1b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"))