From 6de9735886ddeb4ceff9b73442b7613cee08a2de Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 2 Jul 2018 14:47:41 +0200 Subject: [PATCH] fixup! [ADD] mail_activity --- mail_activity/static/src/js/mail_activity.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mail_activity/static/src/js/mail_activity.js b/mail_activity/static/src/js/mail_activity.js index 2a38d594..9d48aedc 100644 --- a/mail_activity/static/src/js/mail_activity.js +++ b/mail_activity/static/src/js/mail_activity.js @@ -1,6 +1,5 @@ //-*- coding: utf-8 -*- -//© 2017-2018 Therp BV -//License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +// Part of Odoo. See LICENSE file for full copyright and licensing details. odoo.define('mail.Activity', function(require) { @@ -13,7 +12,7 @@ odoo.define('mail.Activity', function(require) Chatter.include({ init: function() { this._super.apply(this, arguments); - this.schedule_activity_btn = !!this.view.fields.activity_ids + this.schedule_activity_btn = !!this.view.fields.activity_ids; }, start: function() { this.$('button.o_chatter_button_schedule_activity').click( @@ -73,7 +72,7 @@ odoo.define('mail.Activity', function(require) render_value: function() { return $.when( this._super.apply(this, arguments), - this._readActivities(), + this._readActivities() ).then(this.proxy('_render_value')); }, _render_value: function() { @@ -122,9 +121,9 @@ odoo.define('mail.Activity', function(require) if(callback) { callback(); } - return self.field_manager.reload() + return self.field_manager.reload(); }, - }) + }); }, // handlers _onEditActivity: function (event, options) {