From a0927af12a39d91b2a97f8da3286290267e48458 Mon Sep 17 00:00:00 2001 From: "Louis Wicket (wil)" Date: Mon, 7 Nov 2022 08:06:48 +0000 Subject: [PATCH] [IMP] mail: remove leading whitespaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove leading whitespaces introduced in 0cb45f3d19e37b9799c3b5064d4ff3d56127fb4d closes odoo/odoo#105123 Related: odoo/enterprise#33692 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/core_models/record.js | 2 +- addons/mail/static/src/models/attachment_viewer__translate.js | 2 +- addons/mail/static/src/models/attachment_viewer_viewable.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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: {