diff --git a/addons/mail/static/src/models/rtc/rtc.js b/addons/mail/static/src/models/rtc/rtc.js index 25d70c181d1..16c17a387b1 100644 --- a/addons/mail/static/src/models/rtc/rtc.js +++ b/addons/mail/static/src/models/rtc/rtc.js @@ -1212,7 +1212,7 @@ registerModel({ logs: attr({ default: {}, }), - peerNotificationsToSend: one2many('mail.rtc_peer_notification', { + peerNotificationsToSend: one2many('RtcPeerNotification', { isCausal: true, }), /** diff --git a/addons/mail/static/src/models/rtc_peer_notification/rtc_peer_notification.js b/addons/mail/static/src/models/rtc_peer_notification/rtc_peer_notification.js index 22a8ead2c3a..1ac7b69ee19 100644 --- a/addons/mail/static/src/models/rtc_peer_notification/rtc_peer_notification.js +++ b/addons/mail/static/src/models/rtc_peer_notification/rtc_peer_notification.js @@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core'; import { attr } from '@mail/model/model_field'; registerModel({ - name: 'mail.rtc_peer_notification', + name: 'RtcPeerNotification', identifyingFields: ['id'], fields: { channelId: attr({