[IMP] mail: rename rtc layout menu model
Rename javascript model `mail.rtc_layout_menu` to `RtcLayoutMenu` in order to distinguish javascript models from python models. Part of task-2701674. closes odoo/odoo#81413 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -12,7 +12,7 @@ export class RtcLayoutMenu extends Component {
|
||||
*/
|
||||
setup() {
|
||||
super.setup();
|
||||
useComponentToModel({ fieldName: 'component', modelName: 'mail.rtc_layout_menu', propNameAsRecordLocalId: 'localId' });
|
||||
useComponentToModel({ fieldName: 'component', modelName: 'RtcLayoutMenu', propNameAsRecordLocalId: 'localId' });
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
@@ -20,10 +20,10 @@ export class RtcLayoutMenu extends Component {
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @returns {mail.rtc_layout_menu}
|
||||
* @returns {RtcLayoutMenu}
|
||||
*/
|
||||
get layoutMenu() {
|
||||
return this.messaging && this.messaging.models['mail.rtc_layout_menu'].get(this.props.localId);
|
||||
return this.messaging && this.messaging.models['RtcLayoutMenu'].get(this.props.localId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ registerModel({
|
||||
/**
|
||||
* The model for the menu to control the layout of the viewer.
|
||||
*/
|
||||
rtcLayoutMenu: one2one('mail.rtc_layout_menu', {
|
||||
rtcLayoutMenu: one2one('RtcLayoutMenu', {
|
||||
inverse: 'callViewer',
|
||||
isCausal: true,
|
||||
}),
|
||||
|
||||
@@ -5,7 +5,7 @@ import { attr, one2one } from '@mail/model/model_field';
|
||||
import { clear } from '@mail/model/model_field_command';
|
||||
|
||||
registerModel({
|
||||
name: 'mail.rtc_layout_menu',
|
||||
name: 'RtcLayoutMenu',
|
||||
identifyingFields: ['callViewer'],
|
||||
lifecycleHooks: {
|
||||
_created() {
|
||||
|
||||
Reference in New Issue
Block a user