diff --git a/addons/mail/static/src/core_models/record.js b/addons/mail/static/src/core_models/record.js index ba7be89a124..2c6d494186d 100644 --- a/addons/mail/static/src/core_models/record.js +++ b/addons/mail/static/src/core_models/record.js @@ -8,7 +8,7 @@ import { one, Model } from '@mail/model'; * represent server record (e.g. Thread, Message) or UI elements (e.g. * MessagingMenu, ChatWindow). These instances are called "records". */ - Model({ +Model({ /** * Name of the model. Important to refer to appropriate model like in * relational fields. Name of models must be unique. diff --git a/addons/mail/static/src/models/attachment_viewer__translate.js b/addons/mail/static/src/models/attachment_viewer__translate.js index 824e3ed6bbd..49f7698f045 100644 --- a/addons/mail/static/src/models/attachment_viewer__translate.js +++ b/addons/mail/static/src/models/attachment_viewer__translate.js @@ -9,7 +9,7 @@ import { attr, one, Model } from '@mail/model'; * reasons (overhead of making vdom is too significant for each mouse * position changes while dragging) */ - Model({ +Model({ name: 'AttachmentViewer.Translate', fields: { dx: attr({ default: 0 }), diff --git a/addons/mail/static/src/models/attachment_viewer_viewable.js b/addons/mail/static/src/models/attachment_viewer_viewable.js index 75dd382d0ab..72d0e8ffb56 100644 --- a/addons/mail/static/src/models/attachment_viewer_viewable.js +++ b/addons/mail/static/src/models/attachment_viewer_viewable.js @@ -6,8 +6,7 @@ import { attr, one, Model } from "@mail/model"; * Intermediary model to facilitate adding support for additional * models to the AttachmentViewer. */ - - Model({ +Model({ name: "AttachmentViewerViewable", identifyingMode: 'xor', recordMethods: {