[IMP] mail: rename dialog manager model

Rename javascript model `mail.dialog_manager` to `DialogManager` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81334

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-14 10:54:52 +00:00
parent 17bcfc3fda
commit ba6dd459be
3 changed files with 4 additions and 4 deletions
@@ -45,14 +45,14 @@ registerModel({
inverse: 'dialog',
readonly: true,
}),
manager: many2one('mail.dialog_manager', {
manager: many2one('DialogManager', {
inverse: 'dialogs',
readonly: true,
}),
/**
* Content of dialog that is directly linked to a record that models
* a UI component, such as AttachmentViewer. These records must be
* created from @see `mail.dialog_manager:open()`.
* created from @see `DialogManager:open()`.
*/
record: one2one('mail.model', {
compute: '_computeRecord',
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
import { one2many } from '@mail/model/model_field';
registerModel({
name: 'mail.dialog_manager',
name: 'DialogManager',
identifyingFields: ['messaging'],
fields: {
// FIXME: dependent on implementation that uses insert order in relations!!
@@ -248,7 +248,7 @@ registerModel({
isCausal: true,
readonly: true,
}),
dialogManager: one2one('mail.dialog_manager', {
dialogManager: one2one('DialogManager', {
default: insertAndReplace(),
isCausal: true,
readonly: true,