From 74fddfd312a420441392b1744d4deef239b432a2 Mon Sep 17 00:00:00 2001 From: "Louis Wicket (wil)" Date: Tue, 14 Dec 2021 13:54:25 +0000 Subject: [PATCH] [IMP] mail: rename rtc peer notification model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename javascript model `mail.rtc_peer_notification` to `RtcPeerNotification` in order to distinguish javascript models from python models. Part of task-2701674. closes odoo/odoo#81415 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/models/rtc/rtc.js | 2 +- .../src/models/rtc_peer_notification/rtc_peer_notification.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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({