a05dd4fda2
* [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: https://github.com/OCA/social/pull/283#discussion_r204302325 * [FIX] Escaping 'lt' in xml file. Bug: https://github.com/OCA/social/pull/283#discussion_r204302325 * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
34 lines
962 B
JavaScript
34 lines
962 B
JavaScript
/* Copyright 2018 David Juaneda
|
|
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
|
|
odoo.define('mail.Chatter.activity', function (require) {
|
|
"use strict";
|
|
|
|
var chatter = require('mail.Chatter');
|
|
|
|
chatter.include({
|
|
|
|
events: _.extend({}, chatter.prototype.events, {
|
|
'click .o_chatter_button_list_activity': '_onListActivity',
|
|
}),
|
|
|
|
/**
|
|
* Performs the action to redirect to the activities of the object.
|
|
*
|
|
* @private
|
|
*/
|
|
_onListActivity: function () {
|
|
this._rpc({
|
|
model: this.record.model,
|
|
method: 'redirect_to_activities',
|
|
args: [[]],
|
|
kwargs: {
|
|
'id':this.record.res_id,
|
|
'model':this.record.model,
|
|
},
|
|
context: this.record.getContext(),
|
|
}).then($.proxy(this, "do_action"));
|
|
},
|
|
|
|
});
|
|
});
|