[FIX] Use read_slice when reload gantt.

bzr revid: cpa@tinyerp.com-20110623123128-zix00sjsyo86mtrp
This commit is contained in:
Xavier Morel 2011-06-23 18:01:28 +05:30 committed by cpa-openerp
parent 6df11435af
commit edbfdd0576
1 changed files with 5 additions and 13 deletions

View File

@ -437,19 +437,11 @@ init: function(view_manager, session, element_id, dataset, view_id) {
reload_gantt: function() {
var self = this;
var ajax = {
url: '/base/dataset/search_read',
async: false
};
this.rpc(ajax, {
model: this.dataset.model,
domain: self.dataset.domain,
context :self.dataset.context
}, function(response) {
ganttChartControl.clearAll();
jQuery("#GanttDiv").children().remove();
self.load_event(response);
});
this.dataset.read_slice(false, false, false, function(response) {
ganttChartControl.clearAll();
jQuery("#GanttDiv").children().remove();
self.load_event(response);
});
},
do_search: function (domains, contexts, groupbys) {