[FIX] load and show correct fields in gantt view
bzr revid: xmo@openerp.com-20120116102847-d4kt73tmgzfpym41
This commit is contained in:
@@ -525,12 +525,17 @@ openerp.web_gantt.GanttView = openerp.web.View.extend({
|
||||
if (groupbys.length) {
|
||||
this.group_by = groupbys;
|
||||
}
|
||||
|
||||
var fields = _.compact(_.map(this.fields_view.arch.attrs,function(value,key) {
|
||||
if (key != 'string' && key != 'default_group_by') {
|
||||
return value || '';
|
||||
}
|
||||
}));
|
||||
fields = _.uniq(fields.concat(_.keys(this.fields), this.text, this.group_by));
|
||||
$.when(this.has_been_loaded).then(function() {
|
||||
self.dataset.read_slice([], {
|
||||
self.dataset.read_slice(fields, {
|
||||
domain: domains,
|
||||
context: contexts
|
||||
}).done(function(projects){
|
||||
}).done(function(projects) {
|
||||
self.on_project_loaded(projects);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user