From 33476a48885c23481e03fad3bdc29aca0e7f8099 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 1 Sep 2021 10:02:16 +0000 Subject: [PATCH] [FIX] web, mail: remove unnecessary console.log Following commit 118ddcace071bb8887bc9560124b05e882ab1fc0. a few console.log escaped the attention of the reviewer. This commit removes them. closes odoo/odoo#75832 Signed-off-by: Lucas Perais (lpe) --- addons/mail/static/src/js/m2x_avatar_user.js | 2 -- addons/web/static/src/legacy/js/fields/basic_fields.js | 5 ----- addons/web/static/src/legacy/utils.js | 1 - 3 files changed, 8 deletions(-) diff --git a/addons/mail/static/src/js/m2x_avatar_user.js b/addons/mail/static/src/js/m2x_avatar_user.js index 0b9e4548818..53f7f0f2ac1 100644 --- a/addons/mail/static/src/js/m2x_avatar_user.js +++ b/addons/mail/static/src/js/m2x_avatar_user.js @@ -60,8 +60,6 @@ export const Many2OneAvatarUser = Many2OneAvatar.extend(M2XAvatarMixin, { }), on_attach_callback() { - console.log("on_attach_callback ", this.mode) - this._registerCommandAssignTo() }, on_detach_callback(){ diff --git a/addons/web/static/src/legacy/js/fields/basic_fields.js b/addons/web/static/src/legacy/js/fields/basic_fields.js index 5fbc07e26f4..591225a831f 100644 --- a/addons/web/static/src/legacy/js/fields/basic_fields.js +++ b/addons/web/static/src/legacy/js/fields/basic_fields.js @@ -2505,13 +2505,8 @@ var PriorityWidget = AbstractField.extend({ var checked = this.$("[aria-checked='true']"); return checked.length ? checked : this.$("[data-index='1']"); }, - init: function () { - this._super.apply(this, arguments); - console.log("init ", this.mode) - }, on_attach_callback() { - console.log("on_attach_callback ") const self = this; if (self.viewType === "form") { let provide = () => { diff --git a/addons/web/static/src/legacy/utils.js b/addons/web/static/src/legacy/utils.js index 20d1a7e65e7..5310281cdf7 100644 --- a/addons/web/static/src/legacy/utils.js +++ b/addons/web/static/src/legacy/utils.js @@ -135,7 +135,6 @@ export function makeLegacyCommandService(legacyEnv) { const commandRemoveMap = new Map(); function setLegacyCommand(uniqueId, getCommandDefinition) { - console.log("setLegacyCommand ", uniqueId); const { name, action, options } = getCommandDefinition(env); removeLegacyCommand(uniqueId); commandRemoveMap.set(uniqueId, command.add(name, action, options));