[FIX] Gantt, Read does not show inherited view fields.
lp bug: https://launchpad.net/bugs/910801 fixed bzr revid: vda@tinyerp.com-20120104104355-v2db8da6x3seikw1
This commit is contained in:
@@ -508,12 +508,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