[IMP] master: rename rtc controller model

Rename javascript model `mail.rtc_controller` to `RtcController` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81412

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 01:58:43 +00:00
parent 66382ab1d7
commit b3091216d7
4 changed files with 5 additions and 5 deletions
@@ -11,10 +11,10 @@ export class RtcController extends Component {
//--------------------------------------------------------------------------
/**
* @returns {mail.rtc_controller}
* @returns {RtcController}
*/
get rtcController() {
return this.messaging && this.messaging.models['mail.rtc_controller'].get(this.props.localId);
return this.messaging && this.messaging.models['RtcController'].get(this.props.localId);
}
}
@@ -363,7 +363,7 @@ registerModel({
/**
* The model for the controller (buttons).
*/
rtcController: one2one('mail.rtc_controller', {
rtcController: one2one('RtcController', {
default: insertAndReplace(),
readonly: true,
required: true,
@@ -5,7 +5,7 @@ import { attr, one2one } from '@mail/model/model_field';
import { insertAndReplace } from '@mail/model/model_field_command';
registerModel({
name: 'mail.rtc_controller',
name: 'RtcController',
identifyingFields: ['callViewer'],
lifecycleHooks: {
_created() {
@@ -70,7 +70,7 @@ registerModel({
* States the OWL component of this option list.
*/
component: attr(),
rtcController: one2one('mail.rtc_controller', {
rtcController: one2one('RtcController', {
inverse: 'rtcOptionList',
readonly: true,
required: true,