[IMP] mail: rename rtc model

Rename javascript model `mail.rtc` to `Rtc` in order to distinguish
javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81408

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 01:03:33 +00:00
parent e4eeff3d4f
commit 916fc7430b
4 changed files with 4 additions and 4 deletions
@@ -354,7 +354,7 @@ registerModel({
ringingThreads: one2many('mail.thread', {
inverse: 'messagingAsRingingThread',
}),
rtc: one2one('mail.rtc', {
rtc: one2one('Rtc', {
default: insertAndReplace(),
isCausal: true,
readonly: true,
+1 -1
View File
@@ -23,7 +23,7 @@ const getRTCPeerNotificationNextTemporaryId = (function () {
})();
registerModel({
name: 'mail.rtc',
name: 'Rtc',
identifyingFields: ['messaging'],
lifecycleHooks: {
_created() {
@@ -405,7 +405,7 @@ registerModel({
* sessions from other channels with the same partner (sessions opened from different
* tabs or devices).
*/
rtc: one2one('mail.rtc', {
rtc: one2one('Rtc', {
inverse: 'currentRtcSession',
}),
/**
@@ -2320,7 +2320,7 @@ registerModel({
/**
* If set, the current thread is the thread that hosts the current RTC call.
*/
rtc: one2one('mail.rtc', {
rtc: one2one('Rtc', {
inverse: 'channel',
}),
/**