},
do_search: function (domains, contexts, group_bys) {
var self = this;
+ self.last_domains = domains;
+ self.last_contexts = contexts;
+ self.last_group_bys = group_bys;
// select the group by
var n_group_bys = [];
if (this.fields_view.arch.attrs.default_group_by) {
});
});
},
+ reload: function() {
+ return this.do_search(this.last_domains, this.last_contexts, this.last_group_bys);
+ },
on_data_loaded: function(tasks, group_bys) {
var self = this;
$(".oe-gantt-view-view", this.$element).html("");
});
},
on_task_display: function(task) {
- //TODO niv
- console.log(task);
+ var self = this;
+ var pop = new openerp.web.form.FormOpenPopup(self);
+ pop.on_write_completed.add_last(function() {
+ self.reload();
+ });
+ pop.show_element(
+ self.dataset.model,
+ task.id,
+ null,
+ {}
+ );
},
});