|
@ -37,9 +37,9 @@ odoo.define('web_timeline.TimelineController', function (require) { |
|
|
* @override |
|
|
* @override |
|
|
*/ |
|
|
*/ |
|
|
update: function (params, options) { |
|
|
update: function (params, options) { |
|
|
this._super.apply(this, arguments); |
|
|
|
|
|
|
|
|
var res = this._super.apply(this, arguments); |
|
|
if (_.isEmpty(params)){ |
|
|
if (_.isEmpty(params)){ |
|
|
return; |
|
|
|
|
|
|
|
|
return res; |
|
|
} |
|
|
} |
|
|
var defaults = _.defaults({}, options, { |
|
|
var defaults = _.defaults({}, options, { |
|
|
adjust_window: true |
|
|
adjust_window: true |
|
@ -63,6 +63,8 @@ odoo.define('web_timeline.TimelineController', function (require) { |
|
|
|
|
|
|
|
|
var fields = this.renderer.fieldNames; |
|
|
var fields = this.renderer.fieldNames; |
|
|
fields = _.uniq(fields.concat(n_group_bys)); |
|
|
fields = _.uniq(fields.concat(n_group_bys)); |
|
|
|
|
|
return $.when( |
|
|
|
|
|
res, |
|
|
self._rpc({ |
|
|
self._rpc({ |
|
|
model: self.model.modelName, |
|
|
model: self.model.modelName, |
|
|
method: 'search_read', |
|
|
method: 'search_read', |
|
@ -73,7 +75,8 @@ odoo.define('web_timeline.TimelineController', function (require) { |
|
|
context: self.getSession().user_context, |
|
|
context: self.getSession().user_context, |
|
|
}).then(function (data) { |
|
|
}).then(function (data) { |
|
|
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window); |
|
|
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window); |
|
|
}); |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|