[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:
@@ -354,7 +354,7 @@ registerModel({
|
||||
ringingThreads: one2many('mail.thread', {
|
||||
inverse: 'messagingAsRingingThread',
|
||||
}),
|
||||
rtc: one2one('mail.rtc', {
|
||||
rtc: one2one('Rtc', {
|
||||
default: insertAndReplace(),
|
||||
isCausal: true,
|
||||
readonly: true,
|
||||
|
||||
@@ -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',
|
||||
}),
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user