[IMP] mail: rename message in reply to view model

Rename javascript model `mail.message_in_reply_to_view` to
`MessageInReplyToView` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81382

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 11:12:35 +00:00
parent 443cbc625c
commit 561c6736f0
3 changed files with 4 additions and 4 deletions
@@ -6,10 +6,10 @@ const { Component } = owl;
export class MessageInReplyToView extends Component {
/**
* @returns {mail.message_in_reply_to_view}
* @returns {MessageInReplyToView}
*/
get messageInReplyToView() {
return this.messaging && this.messaging.models['mail.message_in_reply_to_view'].get(this.props.messageInReplyToViewLocalId);
return this.messaging && this.messaging.models['MessageInReplyToView'].get(this.props.messageInReplyToViewLocalId);
}
}
@@ -6,7 +6,7 @@ import { replace } from '@mail/model/model_field_command';
import { markEventHandled } from '@mail/utils/utils';
registerModel({
name: 'mail.message_in_reply_to_view',
name: 'MessageInReplyToView',
identifyingFields: ['messageView'],
lifecycleHooks: {
_created() {
@@ -175,7 +175,7 @@ registerModel({
* States the message in reply to view that displays the message of
* which this message is a reply to (if any).
*/
messageInReplyToView: one2one('mail.message_in_reply_to_view', {
messageInReplyToView: one2one('MessageInReplyToView', {
compute: '_computeMessageInReplyToView',
inverse: 'messageView',
isCausal: true,