[IMP] odex_mobile: log an error instead of blocking the whole operation
This commit is contained in:
parent
435c8ee0dd
commit
df123df0fd
|
|
@ -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"))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue